runner-runtime 1.0.84 → 1.0.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tmp/request.js CHANGED
@@ -1,64 +1,11 @@
1
- module.exports ={
1
+ module.exports = {
2
2
  "option": {
3
- "scene": "http_request",
4
- "globals": {
5
- "4444": "2323",
6
- "glo": "",
7
- "name": "xiaohong",
8
- "yuyu": ""
9
- },
3
+ "scene": "auto_test",
4
+ "globals": {},
10
5
  "project": {
11
6
  "request": {
12
7
  "header": {
13
8
  "parameter": [
14
- {
15
- "param_id": "3c5ddca078dd000",
16
- "description": "",
17
- "field_type": "string",
18
- "is_checked": 1,
19
- "key": "authorization",
20
- "value": "quanju",
21
- "not_null": 1,
22
- "schema": {
23
- "type": "string"
24
- }
25
- },
26
- {
27
- "param_id": "3c5ddca078dd001",
28
- "description": "",
29
- "field_type": "string",
30
- "is_checked": 1,
31
- "key": "header_1",
32
- "value": "quanju22222",
33
- "not_null": 1,
34
- "schema": {
35
- "type": "string"
36
- }
37
- },
38
- {
39
- "param_id": "3c5ddca078dd002",
40
- "description": "",
41
- "field_type": "string",
42
- "is_checked": 1,
43
- "key": "User-Agent",
44
- "value": "xinxixnixn",
45
- "not_null": 1,
46
- "schema": {
47
- "type": "string"
48
- }
49
- },
50
- {
51
- "param_id": "3c5ddca078dd003",
52
- "description": "",
53
- "field_type": "string",
54
- "is_checked": 1,
55
- "key": "222",
56
- "value": "3333",
57
- "not_null": 1,
58
- "schema": {
59
- "type": "string"
60
- }
61
- },
62
9
  {
63
10
  "key": "Accept",
64
11
  "value": "*/*",
@@ -90,60 +37,10 @@ module.exports ={
90
37
  ]
91
38
  },
92
39
  "query": {
93
- "parameter": [
94
- {
95
- "param_id": "3c5ddca078dd004",
96
- "description": "",
97
- "field_type": "string",
98
- "is_checked": 1,
99
- "key": "query_1",
100
- "value": "quanju",
101
- "not_null": 1,
102
- "schema": {
103
- "type": "string"
104
- }
105
- },
106
- {
107
- "param_id": "3c5ddca078dd005",
108
- "description": "",
109
- "field_type": "string",
110
- "is_checked": -1,
111
- "key": "query_1",
112
- "value": "quanju2222",
113
- "not_null": 1,
114
- "schema": {
115
- "type": "string"
116
- }
117
- }
118
- ]
40
+ "parameter": []
119
41
  },
120
42
  "body": {
121
- "parameter": [
122
- {
123
- "param_id": "3c5ddca078dd006",
124
- "description": "",
125
- "field_type": "string",
126
- "is_checked": 1,
127
- "key": "body_1",
128
- "value": "quanju",
129
- "not_null": 1,
130
- "schema": {
131
- "type": "string"
132
- }
133
- },
134
- {
135
- "param_id": "3c5ddca078dd007",
136
- "description": "",
137
- "field_type": "string",
138
- "is_checked": -1,
139
- "key": "body_1",
140
- "value": "quanju22222",
141
- "not_null": 1,
142
- "schema": {
143
- "type": "string"
144
- }
145
- }
146
- ]
43
+ "parameter": []
147
44
  },
148
45
  "cookie": {
149
46
  "parameter": []
@@ -151,24 +48,8 @@ module.exports ={
151
48
  "auth": {
152
49
  "type": "noauth"
153
50
  },
154
- "pre_tasks": [
155
- {
156
- "id": "5ddc9c07c2171",
157
- "type": "customScript",
158
- "enabled": 1,
159
- "data": "console.log(\"全局-预执行脚本\");",
160
- "name": "全局-预执行脚本"
161
- }
162
- ],
163
- "post_tasks": [
164
- {
165
- "id": "5ddc9c07c2172",
166
- "type": "customScript",
167
- "enabled": 1,
168
- "data": "console.log(\"全局-后执行脚本\");",
169
- "name": "全局-后执行脚本"
170
- }
171
- ]
51
+ "pre_tasks": [],
52
+ "post_tasks": []
172
53
  }
173
54
  },
174
55
  "env": {
@@ -187,59 +68,27 @@ module.exports ={
187
68
  "name": "默认服务",
188
69
  "sort": 1000,
189
70
  "uri": ""
190
- },
191
- "5ddc9bffc2125": {
192
- "server_id": "5ddc9bffc2125",
193
- "name": "111",
194
- "sort": 2001,
195
- "uri": "echo.apipost.cn"
196
- },
197
- "5ddc9bffc2126": {
198
- "server_id": "5ddc9bffc2126",
199
- "name": "前置使用变量",
200
- "sort": 2002,
201
- "uri": ""
202
- },
203
- "5ddc9bffc2127": {
204
- "server_id": "5ddc9bffc2127",
205
- "name": "32",
206
- "sort": 2003,
207
- "uri": ""
208
- },
209
- "5ddc9bffc2128": {
210
- "server_id": "5ddc9bffc2128",
211
- "name": "新增的服务",
212
- "sort": 2004,
213
- "uri": ""
214
71
  }
215
72
  },
216
73
  "environment": {
217
- "port": "6002",
218
- "Set-Cookie": "",
219
- "url3": "go.apipost.cn",
220
- "VAR_NAME": "undefined",
221
- "yuzhixing": "",
222
- "env-obj111": "",
223
- "fuhao": "#",
224
- "obj": "1",
225
- "token111": "",
226
- "url": "http://cc.apipost.cc",
227
- "variable_key": "",
228
- "cookie": "",
229
- "name": "",
230
- "test01": "",
231
- "key222": "value",
232
- "test": "",
233
- "test_data": "",
234
- "token": "",
235
- "env": "",
236
- "env-obj": "",
237
- "houzhixing": "admin11"
74
+ "oooo": "gzip, deflate, br",
75
+ "var1": "undefined"
238
76
  }
239
77
  },
240
78
  "cookies": {
241
79
  "switch": 1,
242
80
  "data": [
81
+ {
82
+ "key": "aliyungf_tc",
83
+ "value": "85bd313c10390304cae7a78e4abd631e8390c0eea16ce61202c2bea63ae72a2e",
84
+ "path": "/",
85
+ "httpOnly": true,
86
+ "creation": "2025-05-27T12:48:16.342Z",
87
+ "name": "aliyungf_tc",
88
+ "cookie_id": "3899fe6bfff00b",
89
+ "domain": "v.juhe.cn",
90
+ "project_id": "478597272401000"
91
+ },
243
92
  {
244
93
  "key": "liveCookie",
245
94
  "value": "gin",
@@ -248,11 +97,11 @@ module.exports ={
248
97
  "path": "/",
249
98
  "secure": true,
250
99
  "httpOnly": true,
251
- "creation": "2025-05-28T17:16:04.431Z",
100
+ "creation": "2025-06-05T11:29:01.800Z",
252
101
  "name": "liveCookie",
253
- "cookie_id": "3a1bcd50750071",
254
- "expires": "Wed, 28 May 2025 17:18:04 GMT",
255
- "project_id": "5ddc9bfbc2124"
102
+ "cookie_id": "2f43d903d001b",
103
+ "expires": "Thu, 05 Jun 2025 11:31:02 GMT",
104
+ "project_id": "478597272401000"
256
105
  },
257
106
  {
258
107
  "key": "loseCookie",
@@ -262,17 +111,17 @@ module.exports ={
262
111
  "path": "/",
263
112
  "secure": true,
264
113
  "httpOnly": true,
265
- "creation": "2025-05-28T17:16:04.431Z",
114
+ "creation": "2025-06-05T11:29:01.800Z",
266
115
  "name": "loseCookie",
267
- "cookie_id": "3a1bcd50750072",
268
- "expires": "Wed, 28 May 2025 17:16:04 GMT",
269
- "project_id": "5ddc9bfbc2124"
116
+ "cookie_id": "2f43d903d001c",
117
+ "expires": "Thu, 05 Jun 2025 11:29:02 GMT",
118
+ "project_id": "478597272401000"
270
119
  }
271
120
  ]
272
121
  },
273
122
  "system_configs": {
274
123
  "send_timeout": 0,
275
- "auto_redirect": 1,
124
+ "auto_redirect": -1,
276
125
  "max_redirect_time": 5,
277
126
  "auto_gen_mock_url": -1,
278
127
  "request_param_auto_json": -1,
@@ -285,1300 +134,741 @@ module.exports ={
285
134
  "https"
286
135
  ],
287
136
  "auth": {
288
- "authenticate": -1,
137
+ "authenticate": 1,
289
138
  "host": "127.0.0.1:7890",
290
- "username": "",
291
- "password": ""
139
+ "username": "Username",
140
+ "password": "Password"
292
141
  }
293
142
  },
294
143
  "ca_cert": {
295
144
  "open": -1,
296
- "path": ""
145
+ "path": "",
146
+ "base64": ""
297
147
  },
298
- "client_cert": {
299
- "https://cc.apipost.cc:6003": {
300
- "password": "",
301
- "pfx": {
302
- "file_base64": "",
303
- "file_name": "",
304
- "file_url": ""
148
+ "client_cert": {}
149
+ },
150
+ "custom_functions": {
151
+ "fn_hello": "\n// This function is generated by Apipost AI.\ntry {\n return new Date().getTime();\n} catch (error) {\n return text;\n}"
152
+ },
153
+ "collection": [
154
+ {
155
+ "target_id": "38629c6b72a0d7",
156
+ "target_type": "api",
157
+ "parent_id": "0",
158
+ "name": "注册接口",
159
+ "request": {
160
+ "auth": {
161
+ "type": "inherit"
162
+ },
163
+ "body": {
164
+ "mode": "json",
165
+ "parameter": [],
166
+ "raw": "{\n \"username\": \"\",\n \"password\": \"\",\n \"lastLoginAt\":\"\"\n}",
167
+ "raw_parameter": [],
168
+ "raw_schema": {
169
+ "type": "object"
170
+ },
171
+ "binary": null
305
172
  },
306
- "crt": {
307
- "file_base64": "data:application/x-x509-ca-cert;base64,LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURuVENDQW9VQ0ZFcDd4Z3J2VVhteWEzTEdmcEFpenRNUkJvN3ZNQTBHQ1NxR1NJYjNEUUVCQ3dVQU1JR0sKTVFzd0NRWURWUVFHRXdKRFRqRVFNQTRHQTFVRUNBd0hRbVZwYW1sdVp6RVFNQTRHQTFVRUJ3d0hRbVZwYW1sdQpaekVRTUE0R0ExVUVDZ3dIWVhCcGNHOXpkREVNTUFvR0ExVUVDd3dEWVhCME1SWXdGQVlEVlFRRERBMWpZeTVoCmNHbHdiM04wTG1Oak1SOHdIUVlKS29aSWh2Y05BUWtCRmhCaFpHMXBia0JoY0dsd2IzTjBMbU5qTUI0WERUSXoKTVRJeE1UQTVOREl4TmxvWERUTXpNVEl3T0RBNU5ESXhObG93Z1lveEN6QUpCZ05WQkFZVEFrTk9NUkF3RGdZRApWUVFJREFkQ1pXbHFhVzVuTVJBd0RnWURWUVFIREFkQ1pXbHFhVzVuTVE4d0RRWURWUVFLREFaaGNHbHZjM1F4CkREQUtCZ05WQkFzTUEyRndkREVXTUJRR0ExVUVBd3dOWTJNdVlYQnBjRzl6ZEM1all6RWdNQjRHQ1NxR1NJYjMKRFFFSkFSWVJZMnhwWlc1MFFHRndhWEJ2YzNRdVkyTXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCRHdBdwpnZ0VLQW9JQkFRRG5DalNwV2MvVEovcXg2ZHRCRUlKeHhpME0wTWc1M091U0lNK2dMVnNseTl4SVFTTndGWGhrCi8vRzhTOVl0d2lnMHpwZVNLUlhyNi9tdklQcjlsY3RBakRrZzQ4Q1BQSk5YYVo1RTdQVkRYbThtTXhhS2RBeXEKZVBkT2w2bGJ0a0pWRTB0cElWTFo4UkhEOWU4VFdiNENMNFBUSzkrNFhVSElEUU1FTUdNbWFnRUVRd3ordDdSTQpMZDVvcVAxdHVUdlhBbmlUbmU4TnZhYVQ3NDlqcFhYb3lnV29FaVcwOGJ3NmI2TmZwVVEyeFBsSkdrc2tiblRhCisyTWVqb1ZrSlpDbDFlOUhOYXV2a085WjhQamRYMG9nZTM0OE5pZW83amNDWWhBUmttanVJanhiMU1kU3dPdjcKMTVWS3EwcFFwbjNzVHJrWTVqdjZEeis3dWhSaXVnN2pBZ01CQUFFd0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQgpBRGFCdG10NHVPaVpoVlpHdmo1Tko2RUhUUFNGZGxBaVd6U2tiSWllV2RIY1NhK0J3K2xBM1kyalJsYnZNUVVaCndiL21jaFRtNjFJRmlKbnYvN1h2MGtmMkJxUzkyMURXenJHa3FWQk5zRUdIMEdhWGVHMVMwL1pkNXg1RE4zMlEKRW9IRE95K2lOeDlwRzA2cy8ybUlGY1E3eXQ0cW9acXFQZUg4U3VIamZOanlnZnZFUGxiYUJHb0Y4V1dneFluLwp3TzlFK2pYN3VvdlZDWXVrY3NyaEprZzJwK3o5MUFVU3p2NlpTbHlnK3pGM2kyM1Q0ZXA5VDhwRTV2eXE3UlFnClNPT3BQd25uN0d5UWd2UzREbU5LMHkyazc5ZUdGb3VnTWxnS3g1Um5nMUQxNEd0ZFcvMlE0WGxNa2tHZ1ZsR2IKRVRkcGlES1JKWjNTTDJPZ1RsSFpibWM9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K",
308
- "file_name": "client (1).crt",
309
- "file_url": ""
173
+ "pre_tasks": [
174
+ {
175
+ "type": "customScript",
176
+ "enabled": 1,
177
+ "data": "",
178
+ "name": "自定义脚本",
179
+ "id": "3a1e79dbbff009"
180
+ }
181
+ ],
182
+ "post_tasks": [
183
+ {
184
+ "type": "customScript",
185
+ "enabled": 1,
186
+ "data": "",
187
+ "name": "自定义脚本",
188
+ "id": "3a30e2247ff013"
189
+ }
190
+ ],
191
+ "header": {
192
+ "parameter": []
310
193
  },
311
- "key": {
312
- "file_base64": "data:application/x-iwork-keynote-sffkey;base64,LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFcEFJQkFBS0NBUUVBNXdvMHFWblAweWY2c2VuYlFSQ0NjY1l0RE5ESU9kenJraURQb0MxYkpjdmNTRUVqCmNCVjRaUC94dkV2V0xjSW9OTTZYa2lrVjYrdjVyeUQ2L1pYTFFJdzVJT1BBanp5VFYybWVST3oxUTE1dkpqTVcKaW5RTXFuajNUcGVwVzdaQ1ZSTkxhU0ZTMmZFUncvWHZFMW0rQWkrRDB5dmZ1RjFCeUEwREJEQmpKbW9CQkVNTQovcmUwVEMzZWFLajliYms3MXdKNGs1M3ZEYjJtaysrUFk2VjE2TW9GcUJJbHRQRzhPbStqWDZWRU5zVDVTUnBMCkpHNTAydnRqSG82RlpDV1FwZFh2UnpXcnI1RHZXZkQ0M1Y5S0lIdCtQRFlucU80M0FtSVFFWkpvN2lJOFc5VEgKVXNEcis5ZVZTcXRLVUtaOTdFNjVHT1k3K2c4L3U3b1VZcm9PNHdJREFRQUJBb0lCQUNXckQwenhIS1lqcFlidQpSdFlEMkJDdXE5ZWtEcEVJaU12SlY3Q1kxSHlFRVVVaWdhR2Jqb2FCQ0N1WC9iSjJMbEgxd05hT3BrbFJydUt6CnNOZzVYT3NJTWFSQUhidjh0MVVRSGtMRWszUkphRHZGSm82cVB3cG9NSUg2emh6cXlVUFBvb0xnY1A2aGhERDcKM3QrN3lQUFlSVmpmbFZrY3MwWG5nUzlrcURXeDBXZStWOGFJMVJCOXVIbUdDcmo4djFZaHFSRWl2dXl4eUVXQwpZSkowVFRqSVhtMC92OVNJRE5FTjJKVExkYmlIdDBvQm9PZk1CWk5MSmhjSWI4cHkvTW5SYW9IN1EvN2VZQllQClNnMzJycXYvZlNjZGhWakltbTNyWEtaclV5NlErcUpNNGp1MCtpV0E4MzRzd2NiaGZhbU5XR2tLcUYzVmo4WEEKendGbkVjRUNnWUVBK056RHpxb3Vlbk9iZE5ORTdFa2FaTDc4TFFlL0VhTkYycHlhS2IvWTFac2F5U2ozSUMxbAp2RCs0V1hQamZJVWl3SldGeEtONGZyVnlldCtZWGhOZ0p3eU9wb2gyZmlaNzExR0paSWRudGFDV3lmRnpGVS8rClZQUm1yUUxIWS9MNHRhdnByTzlhTHBYVWVSYlc0NXVBbUZ5YUtJck1qSkFzMnFpeitKYUxGbUVDZ1lFQTdhcVUKOEE5SHpkVDFsQzB1ZlRoNG1Cdm43enpvSXJHNmY3amhvRVZuazEwWmozKy9pNEFmWEw3VHRuQmtXaTJvZElKbApDb2ZXdGRWbUxvTkhpOER0ZldyWFkzOWhra0ZSSEo5Y01qNEozcEJmaVp0ZUJyaFhucDg1c0xDS0pnWGVNZDNEClhkZVl1TERuczR3Y3FZTnpkbDRQL2cvRGl5RFB5Y29tc3NmdzQ4TUNnWUVBc2pUVWVwOWZIUXpBRzQ1V1lxV08Kb3Vvb2hzNXZRbUFhMjRzYzBoeXhWM1QwWDJ4WVd0Qm5jOEJsY0prT0k5THFxZUhvb29FMC9mZE0vVFEwVmRtbQpGeEJrN2xmMkVpdllycjJTbDB4bk5hYkRrK1MwdG1STUNlWGh5SzZldmJIMTY1SXBpVTcwMHpzenBXcDNneEdOCnFvMVZUd2JscHhwdkpEMStjdHJLeXNFQ2dZRUFyMlo0T3Q4Y0lCVnVGS2h2cWV5Mlc1UWt6UlJIUWV1bTkwSU0KQ2t1T2tGeGlVOXgxRWRCQjFTSGtmNzFjNG96VnlQNis4VkdsTFZkTDdVSG4ySVZQQUlPTWFKc0crSGlLRXpTdApSMHN2MzNqdmVWQVh5Wi9jMG0weWwyc0MyZUwweEJxbFo2bUl4YTJSb3BuaVFWeUpKeTl1WUJOa1BsYTk0Mi8wCnRYY0lHaDhDZ1lCbHJBaVdIOGU4aEhkWjdxTjNOTk51cVkvQjdJWFNPdzFIMEVKbjd3Ui9tZElzalFRYkJGL3gKa05YNndvZDVFeHBzRkVER2lJQ0RiQm1FbW5oaU1TWFBXREhoalZKSkFSUG5sL2Fxc0tNemt0dXdic29DbGQ2OApkT1hkbHNtbGhYZVdrcGp5ZUdCREZ5Y3hPdW80M3F6VzdOOUNpQ285dXBuNGZrSEg3Si95Znc9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=",
313
- "file_name": "client (1).key",
314
- "file_url": ""
194
+ "query": {
195
+ "query_add_equal": 1,
196
+ "parameter": []
315
197
  },
316
- "HOST": "https://cc.apipost.cc:6003"
317
- }
318
- }
319
- },
320
- "custom_functions": {},
321
- "collection": [
198
+ "cookie": {
199
+ "cookie_encode": 1,
200
+ "parameter": []
201
+ },
202
+ "restful": {
203
+ "parameter": []
204
+ }
205
+ },
206
+ "parents": [],
207
+ "method": "POST",
208
+ "protocol": "http/1.1",
209
+ "url": "/api/register",
210
+ "pre_url": ""
211
+ },
322
212
  {
323
- "target_id": "3a20b963b57002",
213
+ "target_id": "3866f5e8f2a152",
324
214
  "target_type": "api",
325
215
  "parent_id": "0",
326
- "name": "未命名接口",
216
+ "name": "手机实名校验",
327
217
  "request": {
328
218
  "auth": {
329
219
  "type": "inherit"
330
220
  },
331
221
  "body": {
332
- "mode": "form-data",
222
+ "mode": "json",
333
223
  "parameter": [
334
224
  {
335
- "description": "",
336
- "is_checked": 1,
337
- "key": "2",
338
- "type": "Text",
339
- "not_null": 1,
340
- "field_type": "string",
341
- "value": "@natural(1,100)",
342
- "schema": {
343
- "type": "string"
344
- },
345
- "param_id": "3a20da82f57035",
346
- "tmp_type": "new"
347
- },
348
- {
349
- "description": "",
350
- "is_checked": 1,
351
- "key": "3",
352
- "type": "Text",
353
- "not_null": 1,
354
- "field_type": "string",
355
- "value": "@integer(1,100)",
356
- "schema": {
357
- "type": "string"
358
- },
359
- "param_id": "3a20da82f57036",
360
- "tmp_type": "new"
361
- },
362
- {
363
- "description": "",
364
- "is_checked": 1,
365
- "key": "4",
366
- "type": "Text",
367
- "not_null": 1,
368
- "field_type": "string",
369
- "value": "@float( 1, 10, 2, 5 )",
370
- "schema": {
371
- "type": "string"
372
- },
373
- "param_id": "3a20da82f57037",
374
- "tmp_type": "new"
375
- },
376
- {
377
- "description": "",
378
- "is_checked": 1,
379
- "key": "5",
380
- "type": "Text",
381
- "not_null": 1,
225
+ "param_id": "3867147772a16f",
226
+ "description": "在个人中心->我的数据,接口名称上方查看",
382
227
  "field_type": "string",
383
- "value": "@character(pool)",
384
- "schema": {
385
- "type": "string"
386
- },
387
- "param_id": "3a20da82f57038",
388
- "tmp_type": "new"
389
- },
390
- {
391
- "description": "",
392
228
  "is_checked": 1,
393
- "key": "6",
394
- "type": "Text",
229
+ "key": "key",
395
230
  "not_null": 1,
396
- "field_type": "string",
397
- "value": "@string( pool, 1, 10 )",
231
+ "value": "",
232
+ "content_type": "",
233
+ "file_name": "",
234
+ "file_base64": "",
398
235
  "schema": {
399
236
  "type": "string"
400
- },
401
- "param_id": "3a20da82f57039",
402
- "tmp_type": "new"
237
+ }
403
238
  },
404
239
  {
405
- "description": "",
406
- "is_checked": 1,
407
- "key": "7",
408
- "type": "Text",
409
- "not_null": 1,
240
+ "param_id": "386715acf2a171",
241
+ "description": "姓名",
410
242
  "field_type": "string",
411
- "value": "@range( 1, 100, 1 )",
412
- "schema": {
413
- "type": "string"
414
- },
415
- "param_id": "3a20da82f5703a",
416
- "tmp_type": "new"
417
- },
418
- {
419
- "description": "",
420
243
  "is_checked": 1,
421
- "key": "11",
422
- "type": "Text",
244
+ "key": "realname",
423
245
  "not_null": 1,
424
- "field_type": "string",
425
- "value": "@date('yyyy-MM-dd')",
246
+ "value": "",
247
+ "content_type": "",
248
+ "file_name": "",
249
+ "file_base64": "",
426
250
  "schema": {
427
251
  "type": "string"
428
- },
429
- "param_id": "3a20da82f5703b",
430
- "tmp_type": "new"
252
+ }
431
253
  },
432
254
  {
433
- "description": "",
434
- "is_checked": 1,
435
- "key": "22",
436
- "type": "Text",
437
- "not_null": 1,
255
+ "param_id": "386716dbb2a174",
256
+ "description": "身份证号码",
438
257
  "field_type": "string",
439
- "value": "@time('HH:mm:ss')",
440
- "schema": {
441
- "type": "string"
442
- },
443
- "param_id": "3a20da82f5703c",
444
- "tmp_type": "new"
445
- },
446
- {
447
- "description": "",
448
258
  "is_checked": 1,
449
- "key": "33",
450
- "type": "Text",
259
+ "key": "idcard",
451
260
  "not_null": 1,
452
- "field_type": "string",
453
- "value": "@datetime('yyyy-MM-dd HH:mm:ss')",
261
+ "value": "",
262
+ "content_type": "",
263
+ "file_name": "",
264
+ "file_base64": "",
454
265
  "schema": {
455
266
  "type": "string"
456
- },
457
- "param_id": "3a20da82f5703d",
458
- "tmp_type": "new"
267
+ }
459
268
  },
460
269
  {
461
- "description": "",
462
- "is_checked": 1,
463
- "key": "44",
464
- "type": "Text",
465
- "not_null": 1,
270
+ "param_id": "38671813b2a176",
271
+ "description": "手机号码",
466
272
  "field_type": "string",
467
- "value": "@now('yyyy-MM-dd HH:mm:ss')",
468
- "schema": {
469
- "type": "string"
470
- },
471
- "param_id": "3a20da82f5703e",
472
- "tmp_type": "new"
473
- },
474
- {
475
- "description": "",
476
273
  "is_checked": 1,
477
- "key": "111",
478
- "type": "Text",
274
+ "key": "mobile",
479
275
  "not_null": 1,
480
- "field_type": "string",
481
- "value": "@guid()",
276
+ "value": "",
277
+ "content_type": "",
278
+ "file_name": "",
279
+ "file_base64": "",
482
280
  "schema": {
483
- "type": "string"
484
- },
485
- "param_id": "3a20da82f5703f",
486
- "tmp_type": "new"
281
+ "type": "string",
282
+ "default": ""
283
+ }
487
284
  },
488
285
  {
489
- "description": "",
286
+ "param_id": "386719b1f2a178",
287
+ "description": "是否显示手机运营商,1:显示,0:不显示(默认)",
288
+ "field_type": "integer",
490
289
  "is_checked": 1,
491
- "key": "222",
492
- "type": "Text",
493
- "not_null": 1,
494
- "field_type": "string",
495
- "value": "@increment(1)",
290
+ "key": "type",
291
+ "not_null": -1,
292
+ "value": "",
293
+ "content_type": "",
294
+ "file_name": "",
295
+ "file_base64": "",
496
296
  "schema": {
497
- "type": "string"
498
- },
499
- "param_id": "3a20da82f57040",
500
- "tmp_type": "new"
297
+ "type": "integer"
298
+ }
501
299
  },
502
300
  {
503
- "description": "",
301
+ "param_id": "38671b23b2a17a",
302
+ "description": "是否显示聚合订单号,1:显示,0:不显示(默认)",
303
+ "field_type": "integer",
504
304
  "is_checked": 1,
505
- "key": "a",
506
- "type": "Text",
507
- "not_null": 1,
508
- "field_type": "string",
509
- "value": "@url('http')",
305
+ "key": "showid",
306
+ "not_null": -1,
307
+ "value": "",
308
+ "content_type": "",
309
+ "file_name": "",
310
+ "file_base64": "",
510
311
  "schema": {
511
- "type": "string"
512
- },
513
- "param_id": "3a20da82f57041",
514
- "tmp_type": "new"
312
+ "type": "integer"
313
+ }
515
314
  },
516
315
  {
517
- "description": "",
316
+ "param_id": "38671cc572a17c",
317
+ "description": "是否显示手机号归属地,1:显示,0:不显示(默认)",
318
+ "field_type": "integer",
518
319
  "is_checked": 1,
519
- "key": "b",
520
- "type": "Text",
521
- "not_null": 1,
522
- "field_type": "string",
523
- "value": "@protocol()",
320
+ "key": "province",
321
+ "not_null": -1,
322
+ "value": "",
323
+ "content_type": "",
324
+ "file_name": "",
325
+ "file_base64": "",
524
326
  "schema": {
525
- "type": "string"
526
- },
527
- "param_id": "3a20da82f57042",
528
- "tmp_type": "new"
327
+ "type": "integer"
328
+ }
529
329
  },
530
330
  {
531
- "description": "",
331
+ "param_id": "38671e0572a17e",
332
+ "description": "是否显示匹配详情码,1:显示,0:不显示(默认)",
333
+ "field_type": "integer",
532
334
  "is_checked": 1,
533
- "key": "c",
534
- "type": "Text",
535
- "not_null": 1,
536
- "field_type": "string",
537
- "value": "@domain()",
335
+ "key": "detail",
336
+ "not_null": -1,
337
+ "value": "",
338
+ "content_type": "",
339
+ "file_name": "",
340
+ "file_base64": "",
538
341
  "schema": {
539
- "type": "string"
540
- },
541
- "param_id": "3a20da82f57043",
542
- "tmp_type": "new"
543
- },
342
+ "type": "integer"
343
+ }
344
+ }
345
+ ],
346
+ "raw": "{\n \"lastLoginAt\":1\n}",
347
+ "raw_parameter": [],
348
+ "raw_schema": {
349
+ "type": "object",
350
+ "required": [
351
+ "id"
352
+ ],
353
+ "properties": {
354
+ "id": {
355
+ "type": "integer",
356
+ "example": 1
357
+ }
358
+ },
359
+ "x-schema-orders": [
360
+ "id"
361
+ ]
362
+ },
363
+ "binary": null
364
+ },
365
+ "pre_tasks": [
366
+ {
367
+ "type": "customScript",
368
+ "enabled": 1,
369
+ "data": "// This code is generated by [Apipost] AI.\nfunction encryptRequestParamsWithAES() {\n try {\n // 获取请求参数\n let requestParams = request.request_bodys;\n if (_.isString(requestParams)) {\n try {\n requestParams = JSON5.parse(requestParams);\n } catch (e) {\n console.warn('请求参数解析为JSON失败');\n return;\n }\n }\n // 将请求参数转换为字符串\n const paramsStr = JSON5.stringify(requestParams);\n // 使用CryptoJS进行AES加密,这里假设密钥为固定值,实际应用中应妥善处理密钥\n const encrypted = CryptoJS.AES.encrypt(paramsStr, 'Secret Passphrase');\n // 设置加密后的参数为请求体\n pm.setRequestBody(encrypted.toString());\n } catch (error) {\n console.error('加密请求参数时出错:', error);\n }\n}",
370
+ "name": "自定义脚本",
371
+ "id": "3a0094827ff006"
372
+ }
373
+ ],
374
+ "post_tasks": [
375
+ {
376
+ "type": "customScript",
377
+ "enabled": 1,
378
+ "data": "// This code is generated by [Apipost] AI.\nfunction generateVisualizerScript() {\n try {\n const objData = pm.response.json();\n const template = `\n <style>\n .table { background-color: #FFFFFF; border-radius: 8px; }\n .table th { background-color: #F0F0F0; padding: 10px; border-bottom: 1px solid #DDDDDD; }\n .table td { padding: 10px; border-bottom: 1px solid #DDDDDD; }\n </style>\n <table class=\"table\">\n <thead>\n <tr>\n <th>字段</th>\n <th>值</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>resultcode</td>\n <td>{{resultcode}}</td>\n </tr>\n <tr>\n <td>reason</td>\n <td>{{reason}}</td>\n </tr>\n <tr>\n <td>result</td>\n <td>{{result}}</td>\n </tr>\n <tr>\n <td>error_code</td>\n <td>{{error_code}}</td>\n </tr>\n </tbody>\n </table>\n `;\n pm.visualizer.set(template, objData);\n } catch (e) {\n console.error('生成可视化脚本时出错:', e);\n }\n}\ngenerateVisualizerScript();",
379
+ "name": "自定义脚本",
380
+ "id": "39e9dc0dfff010"
381
+ },
382
+ {
383
+ "type": "customScript",
384
+ "enabled": 1,
385
+ "data": "// 断言响应状态码是否为200\npm.test(\"响应状态码为200\", function () {\n pm.response.to.have.status(200);\n});\n// 断言响应时间是否小于300毫秒(行业推荐平均响应时间)\npm.test(\"响应时间小于300毫秒\", function () {\n pm.expect(pm.response.responseTime).to.be.below(300);\n});\n// 断言响应体中resultcode字段是否为101\npm.test(\"响应体中resultcode字段为101\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.resultcode).to.eql(\"101\");\n});\n// 断言响应体中reason字段是否为错误的请求KEY\npm.test(\"响应体中reason字段为错误的请求KEY\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.reason).to.eql(\"错误的请求KEY\");\n});\n// 断言响应体中error_code字段是否为10001\npm.test(\"响应体中error_code字段为10001\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.error_code).to.eql(10001);\n});\n// 断言响应体是否为有效的JSON格式\npm.test(\"响应体必须是json\", function () {\n pm.response.to.be.json;\n});",
386
+ "name": "AI断言",
387
+ "id": "3a01bc577ff018"
388
+ },
389
+ {
390
+ "type": "customScript",
391
+ "enabled": 1,
392
+ "data": "// 断言响应状态码是否为200\npm.test(\"响应状态码为200\", function () {\n pm.response.to.have.status(200);\n});\n// 断言响应时间是否小于300毫秒(行业推荐平均响应时间)\npm.test(\"响应时间小于300毫秒\", function () {\n pm.expect(pm.response.responseTime).to.be.below(300);\n});\n// 断言响应体中的resultcode是否为101\npm.test(\"响应体中的resultcode为101\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.resultcode).to.eql(\"101\");\n});\n// 断言响应体中的reason是否为错误的请求KEY\npm.test(\"响应体中的reason为错误的请求KEY\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.reason).to.eql(\"错误的请求KEY\");\n});\n// 断言响应体中的error_code是否为10001\npm.test(\"响应体中的error_code为10001\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.error_code).to.eql(10001);\n});",
393
+ "name": "AI Assertion",
394
+ "id": "3a025d25fff008"
395
+ },
396
+ {
397
+ "type": "customScript",
398
+ "enabled": 1,
399
+ "data": "// 断言响应状态码是否为200,通常200表示请求成功\npm.test(\"响应状态码为200\", function () {\n pm.response.to.have.status(200);\n});\n// 断言响应时间是否小于300毫秒,300毫秒是行业推荐的平均响应时间\npm.test(\"响应时间小于300毫秒\", function () {\n pm.expect(pm.response.responseTime).to.be.below(300);\n});\n// 断言响应体中的resultcode字段是否为101\npm.test(\"响应体中的resultcode为101\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.resultcode).to.eql(\"101\");\n});\n// 断言响应体中的reason字段是否为'错误的请求KEY'\npm.test(\"响应体中的reason为错误的请求KEY\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.reason).to.eql(\"错误的请求KEY\");\n});\n// 断言响应体中的error_code字段是否为10001\npm.test(\"响应体中的error_code为10001\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.error_code).to.eql(10001);\n});",
400
+ "name": "AI断言",
401
+ "id": "3a1eabf07ff00c"
402
+ }
403
+ ],
404
+ "header": {
405
+ "parameter": [
544
406
  {
545
- "description": "",
546
- "is_checked": 1,
547
- "key": "d",
548
- "type": "Text",
549
- "not_null": 1,
407
+ "param_id": "38670379f2a15a",
408
+ "description": "请求内容类型",
550
409
  "field_type": "string",
551
- "value": "@tld()",
552
- "schema": {
553
- "type": "string"
554
- },
555
- "param_id": "3a20da82f57044",
556
- "tmp_type": "new"
557
- },
558
- {
559
- "description": "",
560
410
  "is_checked": 1,
561
- "key": "e",
562
- "type": "Text",
411
+ "key": "Content-Type",
563
412
  "not_null": 1,
564
- "field_type": "string",
565
- "value": "@email()",
413
+ "value": "application/x-www-form-urlencoded",
566
414
  "schema": {
567
415
  "type": "string"
568
- },
569
- "param_id": "3a20da82f57045",
570
- "tmp_type": "new"
571
- },
416
+ }
417
+ }
418
+ ]
419
+ },
420
+ "query": {
421
+ "query_add_equal": 1,
422
+ "parameter": [
572
423
  {
573
- "description": "",
574
- "is_checked": 1,
575
- "key": "f",
576
- "type": "Text",
577
- "not_null": 1,
424
+ "param_id": "3867057a72a15c",
425
+ "description": "在个人中心->我的数据,接口名称上方查看",
578
426
  "field_type": "string",
579
- "value": "@ip()",
580
- "schema": {
581
- "type": "string"
582
- },
583
- "param_id": "3a20da82f57046",
584
- "tmp_type": "new"
585
- },
586
- {
587
- "description": "",
588
427
  "is_checked": 1,
589
- "key": "aa",
590
- "type": "Text",
428
+ "key": "key",
591
429
  "not_null": 1,
592
- "field_type": "string",
593
- "value": "@region()",
430
+ "value": "",
594
431
  "schema": {
595
432
  "type": "string"
596
- },
597
- "param_id": "3a20da82f57047",
598
- "tmp_type": "new"
433
+ }
599
434
  },
600
435
  {
601
- "description": "",
602
- "is_checked": 1,
603
- "key": "bb",
604
- "type": "Text",
605
- "not_null": 1,
436
+ "param_id": "386706cf72a15e",
437
+ "description": "姓名",
606
438
  "field_type": "string",
607
- "value": "@province()",
608
- "schema": {
609
- "type": "string"
610
- },
611
- "param_id": "3a20da82f57048",
612
- "tmp_type": "new"
613
- },
614
- {
615
- "description": "",
616
439
  "is_checked": 1,
617
- "key": "cc",
618
- "type": "Text",
440
+ "key": "realname",
619
441
  "not_null": 1,
620
- "field_type": "string",
621
- "value": "@city()",
442
+ "value": "",
622
443
  "schema": {
623
444
  "type": "string"
624
- },
625
- "param_id": "3a20da82f57049",
626
- "tmp_type": "new"
445
+ }
627
446
  },
628
447
  {
629
- "description": "",
630
- "is_checked": 1,
631
- "key": "dd",
632
- "type": "Text",
633
- "not_null": 1,
448
+ "param_id": "38670830b2a160",
449
+ "description": "身份证号码",
634
450
  "field_type": "string",
635
- "value": "@county()",
636
- "schema": {
637
- "type": "string"
638
- },
639
- "param_id": "3a20da82f5704a",
640
- "tmp_type": "new"
641
- },
642
- {
643
- "description": "",
644
451
  "is_checked": 1,
645
- "key": "ee",
646
- "type": "Text",
452
+ "key": "idcard",
647
453
  "not_null": 1,
648
- "field_type": "string",
649
- "value": "@county(true)",
454
+ "value": "",
650
455
  "schema": {
651
456
  "type": "string"
652
- },
653
- "param_id": "3a20da82f5704b",
654
- "tmp_type": "new"
457
+ }
655
458
  },
656
459
  {
657
- "description": "",
658
- "is_checked": 1,
659
- "key": "aaa",
660
- "type": "Text",
661
- "not_null": 1,
460
+ "param_id": "38670975f2a162",
461
+ "description": "手机号码",
662
462
  "field_type": "string",
663
- "value": "@zip()",
664
- "schema": {
665
- "type": "string"
666
- },
667
- "param_id": "3a20da82f5704c",
668
- "tmp_type": "new"
669
- },
670
- {
671
- "description": "",
672
463
  "is_checked": 1,
673
- "key": "aaaa",
674
- "type": "Text",
464
+ "key": "mobile",
675
465
  "not_null": 1,
676
- "field_type": "string",
677
- "value": "@first()",
466
+ "value": "",
678
467
  "schema": {
679
468
  "type": "string"
680
- },
681
- "param_id": "3a20da82f5704d",
682
- "tmp_type": "new"
469
+ }
683
470
  },
684
471
  {
685
- "description": "",
472
+ "param_id": "38670b59f2a164",
473
+ "description": "是否显示手机运营商,1:显示,0:不显示(默认)",
474
+ "field_type": "integer",
686
475
  "is_checked": 1,
687
- "key": "bbbb",
688
- "type": "Text",
689
- "not_null": 1,
690
- "field_type": "string",
691
- "value": "@last()",
476
+ "key": "type",
477
+ "not_null": -1,
478
+ "value": "",
692
479
  "schema": {
693
- "type": "string"
694
- },
695
- "param_id": "3a20da82f5704e",
696
- "tmp_type": "new"
480
+ "type": "integer"
481
+ }
697
482
  },
698
483
  {
699
- "description": "",
484
+ "param_id": "38670cfa32a166",
485
+ "description": "是否显示聚合订单号,1:显示,0:不显示(默认)",
486
+ "field_type": "integer",
700
487
  "is_checked": 1,
701
- "key": "cccc",
702
- "type": "Text",
703
- "not_null": 1,
704
- "field_type": "string",
705
- "value": "@name()",
488
+ "key": "showid",
489
+ "not_null": -1,
490
+ "value": "",
706
491
  "schema": {
707
- "type": "string"
708
- },
709
- "param_id": "3a20da82f5704f",
710
- "tmp_type": "new"
492
+ "type": "integer"
493
+ }
711
494
  },
712
495
  {
713
- "description": "",
496
+ "param_id": "38670ecd72a168",
497
+ "description": "是否显示手机号归属地,1:显示,0:不显示(默认)",
498
+ "field_type": "integer",
714
499
  "is_checked": 1,
715
- "key": "dddd",
716
- "type": "Text",
717
- "not_null": 1,
718
- "field_type": "string",
719
- "value": "@cfirst()",
500
+ "key": "province",
501
+ "not_null": -1,
502
+ "value": "",
720
503
  "schema": {
721
- "type": "string"
722
- },
723
- "param_id": "3a20da82f57050",
724
- "tmp_type": "new"
504
+ "type": "integer"
505
+ }
725
506
  },
726
507
  {
727
- "description": "",
508
+ "param_id": "38671070b2a16a",
509
+ "description": "是否显示匹配详情码,1:显示,0:不显示(默认)",
510
+ "field_type": "integer",
728
511
  "is_checked": 1,
729
- "key": "eeee",
730
- "type": "Text",
731
- "not_null": 1,
732
- "field_type": "string",
733
- "value": "@clast()",
512
+ "key": "detail",
513
+ "not_null": -1,
514
+ "value": "",
734
515
  "schema": {
735
- "type": "string"
736
- },
737
- "param_id": "3a20da82f57051",
738
- "tmp_type": "new"
739
- },
740
- {
741
- "description": "",
742
- "is_checked": 1,
743
- "key": "ffff",
744
- "type": "Text",
745
- "not_null": 1,
746
- "field_type": "string",
747
- "value": "@cname()",
748
- "schema": {
749
- "type": "string"
750
- },
751
- "param_id": "3a20da82f57052",
752
- "tmp_type": "new"
753
- },
754
- {
755
- "description": "",
756
- "is_checked": 1,
757
- "key": "g",
758
- "type": "Text",
759
- "not_null": 1,
760
- "field_type": "string",
761
- "value": "@color()",
762
- "schema": {
763
- "type": "string"
764
- },
765
- "param_id": "3a20da82f57053",
766
- "tmp_type": "new"
767
- },
768
- {
769
- "description": "",
770
- "is_checked": 1,
771
- "key": "h",
772
- "type": "Text",
773
- "not_null": 1,
774
- "field_type": "string",
775
- "value": "@rgb()",
776
- "schema": {
777
- "type": "string"
778
- },
779
- "param_id": "3a20da82f57054",
780
- "tmp_type": "new"
781
- },
782
- {
783
- "description": "",
784
- "is_checked": 1,
785
- "key": "i",
786
- "type": "Text",
787
- "not_null": 1,
788
- "field_type": "string",
789
- "value": "@rgba()",
790
- "schema": {
791
- "type": "string"
792
- },
793
- "param_id": "3a20da83357055",
794
- "tmp_type": "new"
795
- },
796
- {
797
- "description": "",
798
- "is_checked": 1,
799
- "key": "j",
800
- "type": "Text",
801
- "not_null": 1,
802
- "field_type": "string",
803
- "value": "@hsl()",
804
- "schema": {
805
- "type": "string"
806
- },
807
- "param_id": "3a20da83357056",
808
- "tmp_type": "new"
809
- },
810
- {
811
- "description": "",
812
- "is_checked": 1,
813
- "key": "k",
814
- "type": "Text",
815
- "not_null": 1,
816
- "field_type": "string",
817
- "value": "@paragraph()",
818
- "schema": {
819
- "type": "string"
820
- },
821
- "param_id": "3a20da83357057",
822
- "tmp_type": "new"
823
- },
824
- {
825
- "description": "",
826
- "is_checked": 1,
827
- "key": "l",
828
- "type": "Text",
829
- "not_null": 1,
830
- "field_type": "string",
831
- "value": "@cparagraph()",
832
- "schema": {
833
- "type": "string"
834
- },
835
- "param_id": "3a20da83357058",
836
- "tmp_type": "new"
837
- },
838
- {
839
- "description": "",
840
- "is_checked": 1,
841
- "key": "m",
842
- "type": "Text",
843
- "not_null": 1,
844
- "field_type": "string",
845
- "value": "@sentence()",
846
- "schema": {
847
- "type": "string"
848
- },
849
- "param_id": "3a20da83357059",
850
- "tmp_type": "new"
851
- },
852
- {
853
- "description": "",
854
- "is_checked": 1,
855
- "key": "n",
856
- "type": "Text",
857
- "not_null": 1,
858
- "field_type": "string",
859
- "value": "@csentence()",
860
- "schema": {
861
- "type": "string"
862
- },
863
- "param_id": "3a20da8335705a",
864
- "tmp_type": "new"
865
- },
866
- {
867
- "description": "",
868
- "is_checked": 1,
869
- "key": "o",
870
- "type": "Text",
871
- "not_null": 1,
872
- "field_type": "string",
873
- "value": "@word()",
874
- "schema": {
875
- "type": "string"
876
- },
877
- "param_id": "3a20da8335705b",
878
- "tmp_type": "new"
879
- },
880
- {
881
- "description": "",
882
- "is_checked": 1,
883
- "key": "p",
884
- "type": "Text",
885
- "not_null": 1,
886
- "field_type": "string",
887
- "value": "@cword()",
888
- "schema": {
889
- "type": "string"
890
- },
891
- "param_id": "3a20da8335705c",
892
- "tmp_type": "new"
893
- },
894
- {
895
- "description": "",
896
- "is_checked": 1,
897
- "key": "q",
898
- "type": "Text",
899
- "not_null": 1,
900
- "field_type": "string",
901
- "value": "@title()",
902
- "schema": {
903
- "type": "string"
904
- },
905
- "param_id": "3a20da8335705d",
906
- "tmp_type": "new"
907
- },
908
- {
909
- "description": "",
910
- "is_checked": 1,
911
- "key": "r",
912
- "type": "Text",
913
- "not_null": 1,
914
- "field_type": "string",
915
- "value": "@ctitle()",
916
- "schema": {
917
- "type": "string"
918
- },
919
- "param_id": "3a20da8335705e",
920
- "tmp_type": "new"
921
- },
922
- {
923
- "description": "",
924
- "is_checked": 1,
925
- "key": "1",
926
- "type": "Text",
927
- "not_null": 1,
928
- "field_type": "string",
929
- "value": "@telephone()",
930
- "schema": {
931
- "type": "string"
932
- },
933
- "param_id": "3a20da8335705f",
934
- "tmp_type": "new"
935
- }
936
- ],
937
- "raw": "",
938
- "raw_parameter": [],
939
- "raw_schema": {
940
- "type": "object"
941
- },
942
- "binary": null
943
- },
944
- "pre_tasks": [],
945
- "post_tasks": [],
946
- "header": {
947
- "parameter": []
948
- },
949
- "query": {
950
- "parameter": [
951
- {
952
- "description": "",
953
- "is_checked": 1,
954
- "key": "2",
955
- "type": "Text",
956
- "not_null": 1,
957
- "field_type": "string",
958
- "value": "@natural(1,100)",
959
- "schema": {
960
- "type": "string"
961
- },
962
- "param_id": "3a20c737b57007",
963
- "tmp_type": "new"
964
- },
965
- {
966
- "description": "",
967
- "is_checked": 1,
968
- "key": "3",
969
- "type": "Text",
970
- "not_null": 1,
971
- "field_type": "string",
972
- "value": "@integer(1,100)",
973
- "schema": {
974
- "type": "string"
975
- },
976
- "param_id": "3a20c737b57008",
977
- "tmp_type": "new"
978
- },
979
- {
980
- "description": "",
981
- "is_checked": 1,
982
- "key": "4",
983
- "type": "Text",
984
- "not_null": 1,
985
- "field_type": "string",
986
- "value": "@float( 1, 10, 2, 5 )",
987
- "schema": {
988
- "type": "string"
989
- },
990
- "param_id": "3a20c737b57009",
991
- "tmp_type": "new"
992
- },
993
- {
994
- "description": "",
995
- "is_checked": 1,
996
- "key": "5",
997
- "type": "Text",
998
- "not_null": 1,
999
- "field_type": "string",
1000
- "value": "@character(pool)",
1001
- "schema": {
1002
- "type": "string"
1003
- },
1004
- "param_id": "3a20c737b5700a",
1005
- "tmp_type": "new"
1006
- },
1007
- {
1008
- "description": "",
1009
- "is_checked": 1,
1010
- "key": "6",
1011
- "type": "Text",
1012
- "not_null": 1,
1013
- "field_type": "string",
1014
- "value": "@string( pool, 1, 10 )",
1015
- "schema": {
1016
- "type": "string"
1017
- },
1018
- "param_id": "3a20c737b5700b",
1019
- "tmp_type": "new"
1020
- },
1021
- {
1022
- "description": "",
1023
- "is_checked": 1,
1024
- "key": "7",
1025
- "type": "Text",
1026
- "not_null": 1,
1027
- "field_type": "string",
1028
- "value": "@range( 1, 100, 1 )",
1029
- "schema": {
1030
- "type": "string"
1031
- },
1032
- "param_id": "3a20c737b5700c",
1033
- "tmp_type": "new"
1034
- },
1035
- {
1036
- "description": "",
1037
- "is_checked": 1,
1038
- "key": "11",
1039
- "type": "Text",
1040
- "not_null": 1,
1041
- "field_type": "string",
1042
- "value": "@date('yyyy-MM-dd')",
1043
- "schema": {
1044
- "type": "string"
1045
- },
1046
- "param_id": "3a20c737b5700d",
1047
- "tmp_type": "new"
1048
- },
1049
- {
1050
- "description": "",
1051
- "is_checked": 1,
1052
- "key": "22",
1053
- "type": "Text",
1054
- "not_null": 1,
1055
- "field_type": "string",
1056
- "value": "@time('HH:mm:ss')",
1057
- "schema": {
1058
- "type": "string"
1059
- },
1060
- "param_id": "3a20c737b5700e",
1061
- "tmp_type": "new"
1062
- },
1063
- {
1064
- "description": "",
1065
- "is_checked": 1,
1066
- "key": "33",
1067
- "type": "Text",
1068
- "not_null": 1,
1069
- "field_type": "string",
1070
- "value": "@datetime('yyyy-MM-dd HH:mm:ss')",
1071
- "schema": {
1072
- "type": "string"
1073
- },
1074
- "param_id": "3a20c737b5700f",
1075
- "tmp_type": "new"
1076
- },
1077
- {
1078
- "description": "",
1079
- "is_checked": 1,
1080
- "key": "44",
1081
- "type": "Text",
1082
- "not_null": 1,
1083
- "field_type": "string",
1084
- "value": "@now('yyyy-MM-dd HH:mm:ss')",
1085
- "schema": {
1086
- "type": "string"
1087
- },
1088
- "param_id": "3a20c737b57010",
1089
- "tmp_type": "new"
1090
- },
1091
- {
1092
- "description": "",
1093
- "is_checked": 1,
1094
- "key": "111",
1095
- "type": "Text",
1096
- "not_null": 1,
1097
- "field_type": "string",
1098
- "value": "@guid()",
1099
- "schema": {
1100
- "type": "string"
1101
- },
1102
- "param_id": "3a20c737f57011",
1103
- "tmp_type": "new"
1104
- },
1105
- {
1106
- "description": "",
1107
- "is_checked": 1,
1108
- "key": "222",
1109
- "type": "Text",
1110
- "not_null": 1,
1111
- "field_type": "string",
1112
- "value": "@increment(1)",
1113
- "schema": {
1114
- "type": "string"
1115
- },
1116
- "param_id": "3a20c737f57012",
1117
- "tmp_type": "new"
1118
- },
1119
- {
1120
- "description": "",
1121
- "is_checked": 1,
1122
- "key": "a",
1123
- "type": "Text",
1124
- "not_null": 1,
1125
- "field_type": "string",
1126
- "value": "@url('http')",
1127
- "schema": {
1128
- "type": "string"
1129
- },
1130
- "param_id": "3a20c737f57013",
1131
- "tmp_type": "new"
1132
- },
1133
- {
1134
- "description": "",
1135
- "is_checked": 1,
1136
- "key": "b",
1137
- "type": "Text",
1138
- "not_null": 1,
1139
- "field_type": "string",
1140
- "value": "@protocol()",
1141
- "schema": {
1142
- "type": "string"
1143
- },
1144
- "param_id": "3a20c737f57014",
1145
- "tmp_type": "new"
1146
- },
1147
- {
1148
- "description": "",
1149
- "is_checked": 1,
1150
- "key": "c",
1151
- "type": "Text",
1152
- "not_null": 1,
1153
- "field_type": "string",
1154
- "value": "@domain()",
1155
- "schema": {
1156
- "type": "string"
1157
- },
1158
- "param_id": "3a20c737f57015",
1159
- "tmp_type": "new"
1160
- },
1161
- {
1162
- "description": "",
1163
- "is_checked": 1,
1164
- "key": "d",
1165
- "type": "Text",
1166
- "not_null": 1,
1167
- "field_type": "string",
1168
- "value": "@tld()",
1169
- "schema": {
1170
- "type": "string"
1171
- },
1172
- "param_id": "3a20c737f57016",
1173
- "tmp_type": "new"
1174
- },
1175
- {
1176
- "description": "",
1177
- "is_checked": 1,
1178
- "key": "e",
1179
- "type": "Text",
1180
- "not_null": 1,
1181
- "field_type": "string",
1182
- "value": "@email()",
1183
- "schema": {
1184
- "type": "string"
1185
- },
1186
- "param_id": "3a20c737f57017",
1187
- "tmp_type": "new"
1188
- },
1189
- {
1190
- "description": "",
1191
- "is_checked": 1,
1192
- "key": "f",
1193
- "type": "Text",
1194
- "not_null": 1,
1195
- "field_type": "string",
1196
- "value": "@ip()",
1197
- "schema": {
1198
- "type": "string"
1199
- },
1200
- "param_id": "3a20c737f57018",
1201
- "tmp_type": "new"
1202
- },
1203
- {
1204
- "description": "",
1205
- "is_checked": 1,
1206
- "key": "aa",
1207
- "type": "Text",
1208
- "not_null": 1,
1209
- "field_type": "string",
1210
- "value": "@region()",
1211
- "schema": {
1212
- "type": "string"
1213
- },
1214
- "param_id": "3a20c737f57019",
1215
- "tmp_type": "new"
1216
- },
1217
- {
1218
- "description": "",
1219
- "is_checked": 1,
1220
- "key": "bb",
1221
- "type": "Text",
1222
- "not_null": 1,
1223
- "field_type": "string",
1224
- "value": "@province()",
1225
- "schema": {
1226
- "type": "string"
1227
- },
1228
- "param_id": "3a20c73835701a",
1229
- "tmp_type": "new"
1230
- },
1231
- {
1232
- "description": "",
1233
- "is_checked": 1,
1234
- "key": "cc",
1235
- "type": "Text",
1236
- "not_null": 1,
1237
- "field_type": "string",
1238
- "value": "@city()",
1239
- "schema": {
1240
- "type": "string"
1241
- },
1242
- "param_id": "3a20c73835701b",
1243
- "tmp_type": "new"
1244
- },
1245
- {
1246
- "description": "",
1247
- "is_checked": 1,
1248
- "key": "dd",
1249
- "type": "Text",
1250
- "not_null": 1,
1251
- "field_type": "string",
1252
- "value": "@county()",
1253
- "schema": {
1254
- "type": "string"
1255
- },
1256
- "param_id": "3a20c73835701c",
1257
- "tmp_type": "new"
1258
- },
1259
- {
1260
- "description": "",
1261
- "is_checked": 1,
1262
- "key": "ee",
1263
- "type": "Text",
1264
- "not_null": 1,
1265
- "field_type": "string",
1266
- "value": "@county(true)",
1267
- "schema": {
1268
- "type": "string"
1269
- },
1270
- "param_id": "3a20c73835701d",
1271
- "tmp_type": "new"
1272
- },
1273
- {
1274
- "description": "",
1275
- "is_checked": 1,
1276
- "key": "aaa",
1277
- "type": "Text",
1278
- "not_null": 1,
1279
- "field_type": "string",
1280
- "value": "@zip()",
1281
- "schema": {
1282
- "type": "string"
1283
- },
1284
- "param_id": "3a20c73835701e",
1285
- "tmp_type": "new"
1286
- },
1287
- {
1288
- "description": "",
1289
- "is_checked": 1,
1290
- "key": "aaaa",
1291
- "type": "Text",
1292
- "not_null": 1,
1293
- "field_type": "string",
1294
- "value": "@first()",
1295
- "schema": {
1296
- "type": "string"
1297
- },
1298
- "param_id": "3a20c73835701f",
1299
- "tmp_type": "new"
1300
- },
1301
- {
1302
- "description": "",
1303
- "is_checked": 1,
1304
- "key": "bbbb",
1305
- "type": "Text",
1306
- "not_null": 1,
1307
- "field_type": "string",
1308
- "value": "@last()",
1309
- "schema": {
1310
- "type": "string"
1311
- },
1312
- "param_id": "3a20c738357020",
1313
- "tmp_type": "new"
1314
- },
1315
- {
1316
- "description": "",
1317
- "is_checked": 1,
1318
- "key": "cccc",
1319
- "type": "Text",
1320
- "not_null": 1,
1321
- "field_type": "string",
1322
- "value": "@name()",
1323
- "schema": {
1324
- "type": "string"
1325
- },
1326
- "param_id": "3a20c738357021",
1327
- "tmp_type": "new"
1328
- },
1329
- {
1330
- "description": "",
1331
- "is_checked": 1,
1332
- "key": "dddd",
1333
- "type": "Text",
1334
- "not_null": 1,
1335
- "field_type": "string",
1336
- "value": "@cfirst()",
1337
- "schema": {
1338
- "type": "string"
1339
- },
1340
- "param_id": "3a20c738357022",
1341
- "tmp_type": "new"
1342
- },
1343
- {
1344
- "description": "",
1345
- "is_checked": 1,
1346
- "key": "eeee",
1347
- "type": "Text",
1348
- "not_null": 1,
1349
- "field_type": "string",
1350
- "value": "@clast()",
1351
- "schema": {
1352
- "type": "string"
1353
- },
1354
- "param_id": "3a20c738357023",
1355
- "tmp_type": "new"
1356
- },
1357
- {
1358
- "description": "",
1359
- "is_checked": 1,
1360
- "key": "ffff",
1361
- "type": "Text",
1362
- "not_null": 1,
1363
- "field_type": "string",
1364
- "value": "@cname()",
1365
- "schema": {
1366
- "type": "string"
1367
- },
1368
- "param_id": "3a20c738357024",
1369
- "tmp_type": "new"
1370
- },
1371
- {
1372
- "description": "",
1373
- "is_checked": 1,
1374
- "key": "g",
1375
- "type": "Text",
1376
- "not_null": 1,
1377
- "field_type": "string",
1378
- "value": "@color()",
1379
- "schema": {
1380
- "type": "string"
1381
- },
1382
- "param_id": "3a20c738357025",
1383
- "tmp_type": "new"
1384
- },
1385
- {
1386
- "description": "",
1387
- "is_checked": 1,
1388
- "key": "h",
1389
- "type": "Text",
1390
- "not_null": 1,
1391
- "field_type": "string",
1392
- "value": "@rgb()",
1393
- "schema": {
1394
- "type": "string"
1395
- },
1396
- "param_id": "3a20c738357026",
1397
- "tmp_type": "new"
1398
- },
1399
- {
1400
- "description": "",
1401
- "is_checked": 1,
1402
- "key": "i",
1403
- "type": "Text",
1404
- "not_null": 1,
1405
- "field_type": "string",
1406
- "value": "@rgba()",
1407
- "schema": {
1408
- "type": "string"
1409
- },
1410
- "param_id": "3a20c738357027",
1411
- "tmp_type": "new"
1412
- },
1413
- {
1414
- "description": "",
1415
- "is_checked": 1,
1416
- "key": "j",
1417
- "type": "Text",
1418
- "not_null": 1,
1419
- "field_type": "string",
1420
- "value": "@hsl()",
1421
- "schema": {
1422
- "type": "string"
1423
- },
1424
- "param_id": "3a20c738357028",
1425
- "tmp_type": "new"
1426
- },
1427
- {
1428
- "description": "",
1429
- "is_checked": 1,
1430
- "key": "k",
1431
- "type": "Text",
1432
- "not_null": 1,
1433
- "field_type": "string",
1434
- "value": "@paragraph()",
1435
- "schema": {
1436
- "type": "string"
1437
- },
1438
- "param_id": "3a20c738357029",
1439
- "tmp_type": "new"
1440
- },
1441
- {
1442
- "description": "",
1443
- "is_checked": 1,
1444
- "key": "l",
1445
- "type": "Text",
1446
- "not_null": 1,
1447
- "field_type": "string",
1448
- "value": "@cparagraph()",
1449
- "schema": {
1450
- "type": "string"
1451
- },
1452
- "param_id": "3a20c73835702a",
1453
- "tmp_type": "new"
1454
- },
1455
- {
1456
- "description": "",
1457
- "is_checked": 1,
1458
- "key": "m",
1459
- "type": "Text",
1460
- "not_null": 1,
1461
- "field_type": "string",
1462
- "value": "@sentence()",
1463
- "schema": {
1464
- "type": "string"
1465
- },
1466
- "param_id": "3a20c73835702b",
1467
- "tmp_type": "new"
1468
- },
1469
- {
1470
- "description": "",
1471
- "is_checked": 1,
1472
- "key": "n",
1473
- "type": "Text",
1474
- "not_null": 1,
1475
- "field_type": "string",
1476
- "value": "@csentence()",
1477
- "schema": {
1478
- "type": "string"
1479
- },
1480
- "param_id": "3a20c73835702c",
1481
- "tmp_type": "new"
1482
- },
1483
- {
1484
- "description": "",
1485
- "is_checked": 1,
1486
- "key": "o",
1487
- "type": "Text",
1488
- "not_null": 1,
1489
- "field_type": "string",
1490
- "value": "@word()",
1491
- "schema": {
1492
- "type": "string"
1493
- },
1494
- "param_id": "3a20c73835702d",
1495
- "tmp_type": "new"
1496
- },
1497
- {
1498
- "description": "",
1499
- "is_checked": 1,
1500
- "key": "p",
1501
- "type": "Text",
1502
- "not_null": 1,
1503
- "field_type": "string",
1504
- "value": "@cword()",
1505
- "schema": {
1506
- "type": "string"
1507
- },
1508
- "param_id": "3a20c73835702e",
1509
- "tmp_type": "new"
1510
- },
1511
- {
1512
- "description": "",
1513
- "is_checked": 1,
1514
- "key": "q",
1515
- "type": "Text",
1516
- "not_null": 1,
1517
- "field_type": "string",
1518
- "value": "@title()",
1519
- "schema": {
1520
- "type": "string"
1521
- },
1522
- "param_id": "3a20c73835702f",
1523
- "tmp_type": "new"
1524
- },
1525
- {
1526
- "description": "",
1527
- "is_checked": 1,
1528
- "key": "r",
1529
- "type": "Text",
1530
- "not_null": 1,
1531
- "field_type": "string",
1532
- "value": "@ctitle()",
1533
- "schema": {
1534
- "type": "string"
1535
- },
1536
- "param_id": "3a20c738757030",
1537
- "tmp_type": "new"
1538
- },
1539
- {
1540
- "description": "",
1541
- "is_checked": 1,
1542
- "key": "1",
1543
- "type": "Text",
1544
- "not_null": 1,
1545
- "field_type": "string",
1546
- "value": "@telephone()",
1547
- "schema": {
1548
- "type": "string"
1549
- },
1550
- "param_id": "3a20c738757031",
1551
- "tmp_type": "new"
516
+ "type": "integer"
517
+ }
1552
518
  }
1553
- ],
1554
- "query_add_equal": 1
519
+ ]
1555
520
  },
1556
521
  "cookie": {
1557
- "parameter": [],
1558
- "cookie_encode": 1
522
+ "cookie_encode": 1,
523
+ "parameter": []
1559
524
  },
1560
525
  "restful": {
1561
526
  "parameter": []
1562
- },
1563
- "tabs_default_active_key": "query"
527
+ }
1564
528
  },
1565
529
  "parents": [],
1566
530
  "method": "GET",
1567
531
  "protocol": "http/1.1",
1568
- "url": "go.apipost.cn?2=@natural(1,100)&3=@integer(1,100)&4=@float( 1, 10, 2, 5 )&5=@character(pool)&6=@string( pool, 1, 10 )&7=@range( 1, 100, 1 )&11=@date('yyyy-MM-dd')&22=@time('HH:mm:ss')&33=@datetime('yyyy-MM-dd HH:mm:ss')&44=@now('yyyy-MM-dd HH:mm:ss')&111=@guid()&222=@increment(1)&a=@url('http')&b=@protocol()&c=@domain()&d=@tld()&e=@email()&f=@ip()&aa=@region()&bb=@province()&cc=@city()&dd=@county()&ee=@county(true)&aaa=@zip()&aaaa=@first()&bbbb=@last()&cccc=@name()&dddd=@cfirst()&eeee=@clast()&ffff=@cname()&g=@color()&h=@rgb()&i=@rgba()&j=@hsl()&k=@paragraph()&l=@cparagraph()&m=@sentence()&n=@csentence()&o=@word()&p=@cword()&q=@title()&r=@ctitle()&1=@telephone()",
532
+ "url": "https://v.juhe.cn/telecom/query?key=&realname=&idcard=&mobile=&type=&showid=&province=&detail=",
1569
533
  "pre_url": ""
1570
534
  }
1571
535
  ],
1572
- "database_configs": {}
536
+ "database_configs": {},
537
+ "name": "未命名测试用例",
538
+ "ignore_error": -1,
539
+ "enable_sandbox": -1,
540
+ "iterationCount": 2,
541
+ "sleep": 0,
542
+ "testing_id": "2f372b7bd0007",
543
+ "iterates_data_id": "41d7d5dfd0007",
544
+ "iterationData": [
545
+ {
546
+ "v1": "",
547
+ "a": "{{$function.fn_hello()}}",
548
+ "b": "{{$mockjs.idcard()}}",
549
+ "c": "lucy"
550
+ }
551
+ ]
1573
552
  },
1574
553
  "test_events": [
1575
554
  {
1576
555
  "type": "api",
556
+ "auto_sync": false,
557
+ "test_id": "2f372b7bd0007",
558
+ "event_id": "41dd2b8bd0020",
559
+ "enabled": 1,
560
+ "data": {
561
+ "target_id": "38629c6b72a0d7",
562
+ "project_id": "478597272401000",
563
+ "parent_id": "0",
564
+ "target_type": "api",
565
+ "apiData": {
566
+ "name": "注册接口",
567
+ "method": "POST",
568
+ "protocol": "http/1.1",
569
+ "url": "https://go.apipost.cn/?a={{a}}",
570
+ "request": {
571
+ "auth": {
572
+ "type": "inherit"
573
+ },
574
+ "body": {
575
+ "mode": "json",
576
+ "parameter": [],
577
+ "raw": "{\n \"username\": \"\",\n \"password\": \"\",\n \"lastLoginAt\":\"\"\n}",
578
+ "raw_parameter": [],
579
+ "raw_schema": {
580
+ "type": "object"
581
+ },
582
+ "binary": null
583
+ },
584
+ "pre_tasks": [
585
+ {
586
+ "type": "customScript",
587
+ "enabled": 1,
588
+ "data": "",
589
+ "name": "自定义脚本",
590
+ "id": "3a1e79dbbff009"
591
+ }
592
+ ],
593
+ "post_tasks": [
594
+ {
595
+ "type": "customScript",
596
+ "enabled": 1,
597
+ "data": "",
598
+ "name": "自定义脚本",
599
+ "id": "3a30e2247ff013"
600
+ }
601
+ ],
602
+ "header": {
603
+ "parameter": []
604
+ },
605
+ "query": {
606
+ "query_add_equal": 1,
607
+ "parameter": [
608
+ {
609
+ "param_id": "41de01afd004b",
610
+ "field_type": "String",
611
+ "is_checked": 1,
612
+ "key": "a",
613
+ "not_null": 1,
614
+ "value": "{{a}}",
615
+ "description": ""
616
+ }
617
+ ]
618
+ },
619
+ "cookie": {
620
+ "cookie_encode": 1,
621
+ "parameter": []
622
+ },
623
+ "restful": {
624
+ "parameter": []
625
+ }
626
+ }
627
+ }
628
+ }
629
+ },
630
+ {
631
+ "type": "api",
632
+ "auto_sync": false,
633
+ "test_id": "2f372b7bd0007",
634
+ "event_id": "41e136d7d006b",
635
+ "enabled": 1,
1577
636
  "data": {
1578
- "target_id": "3a20b963b57002",
1579
- "project_id": "5ddc9bfbc2124",
637
+ "target_id": "3866f5e8f2a152",
638
+ "project_id": "478597272401000",
1580
639
  "parent_id": "0",
1581
- "target_type": "api"
640
+ "target_type": "api",
641
+ "apiData": {
642
+ "name": "手机实名校验",
643
+ "method": "GET",
644
+ "protocol": "http/1.1",
645
+ "url": "https://v.juhe.cn/telecom/query?a={{a}}",
646
+ "request": {
647
+ "auth": {
648
+ "type": "inherit"
649
+ },
650
+ "body": {
651
+ "mode": "json",
652
+ "parameter": [
653
+ {
654
+ "param_id": "3867147772a16f",
655
+ "description": "在个人中心->我的数据,接口名称上方查看",
656
+ "field_type": "string",
657
+ "is_checked": 1,
658
+ "key": "key",
659
+ "not_null": 1,
660
+ "value": "",
661
+ "content_type": "",
662
+ "file_name": "",
663
+ "file_base64": "",
664
+ "schema": {
665
+ "type": "string"
666
+ }
667
+ },
668
+ {
669
+ "param_id": "386715acf2a171",
670
+ "description": "姓名",
671
+ "field_type": "string",
672
+ "is_checked": 1,
673
+ "key": "realname",
674
+ "not_null": 1,
675
+ "value": "",
676
+ "content_type": "",
677
+ "file_name": "",
678
+ "file_base64": "",
679
+ "schema": {
680
+ "type": "string"
681
+ }
682
+ },
683
+ {
684
+ "param_id": "386716dbb2a174",
685
+ "description": "身份证号码",
686
+ "field_type": "string",
687
+ "is_checked": 1,
688
+ "key": "idcard",
689
+ "not_null": 1,
690
+ "value": "",
691
+ "content_type": "",
692
+ "file_name": "",
693
+ "file_base64": "",
694
+ "schema": {
695
+ "type": "string"
696
+ }
697
+ },
698
+ {
699
+ "param_id": "38671813b2a176",
700
+ "description": "手机号码",
701
+ "field_type": "string",
702
+ "is_checked": 1,
703
+ "key": "mobile",
704
+ "not_null": 1,
705
+ "value": "",
706
+ "content_type": "",
707
+ "file_name": "",
708
+ "file_base64": "",
709
+ "schema": {
710
+ "type": "string",
711
+ "default": ""
712
+ }
713
+ },
714
+ {
715
+ "param_id": "386719b1f2a178",
716
+ "description": "是否显示手机运营商,1:显示,0:不显示(默认)",
717
+ "field_type": "integer",
718
+ "is_checked": 1,
719
+ "key": "type",
720
+ "not_null": -1,
721
+ "value": "",
722
+ "content_type": "",
723
+ "file_name": "",
724
+ "file_base64": "",
725
+ "schema": {
726
+ "type": "integer"
727
+ }
728
+ },
729
+ {
730
+ "param_id": "38671b23b2a17a",
731
+ "description": "是否显示聚合订单号,1:显示,0:不显示(默认)",
732
+ "field_type": "integer",
733
+ "is_checked": 1,
734
+ "key": "showid",
735
+ "not_null": -1,
736
+ "value": "",
737
+ "content_type": "",
738
+ "file_name": "",
739
+ "file_base64": "",
740
+ "schema": {
741
+ "type": "integer"
742
+ }
743
+ },
744
+ {
745
+ "param_id": "38671cc572a17c",
746
+ "description": "是否显示手机号归属地,1:显示,0:不显示(默认)",
747
+ "field_type": "integer",
748
+ "is_checked": 1,
749
+ "key": "province",
750
+ "not_null": -1,
751
+ "value": "",
752
+ "content_type": "",
753
+ "file_name": "",
754
+ "file_base64": "",
755
+ "schema": {
756
+ "type": "integer"
757
+ }
758
+ },
759
+ {
760
+ "param_id": "38671e0572a17e",
761
+ "description": "是否显示匹配详情码,1:显示,0:不显示(默认)",
762
+ "field_type": "integer",
763
+ "is_checked": 1,
764
+ "key": "detail",
765
+ "not_null": -1,
766
+ "value": "",
767
+ "content_type": "",
768
+ "file_name": "",
769
+ "file_base64": "",
770
+ "schema": {
771
+ "type": "integer"
772
+ }
773
+ }
774
+ ],
775
+ "raw": "{\n \"lastLoginAt\":1\n}",
776
+ "raw_parameter": [],
777
+ "raw_schema": {
778
+ "type": "object",
779
+ "required": [
780
+ "id"
781
+ ],
782
+ "properties": {
783
+ "id": {
784
+ "type": "integer",
785
+ "example": 1
786
+ }
787
+ },
788
+ "x-schema-orders": [
789
+ "id"
790
+ ]
791
+ },
792
+ "binary": null
793
+ },
794
+ "pre_tasks": [
795
+ {
796
+ "type": "customScript",
797
+ "enabled": 1,
798
+ "data": "// This code is generated by [Apipost] AI.\nfunction encryptRequestParamsWithAES() {\n try {\n // 获取请求参数\n let requestParams = request.request_bodys;\n if (_.isString(requestParams)) {\n try {\n requestParams = JSON5.parse(requestParams);\n } catch (e) {\n console.warn('请求参数解析为JSON失败');\n return;\n }\n }\n // 将请求参数转换为字符串\n const paramsStr = JSON5.stringify(requestParams);\n // 使用CryptoJS进行AES加密,这里假设密钥为固定值,实际应用中应妥善处理密钥\n const encrypted = CryptoJS.AES.encrypt(paramsStr, 'Secret Passphrase');\n // 设置加密后的参数为请求体\n pm.setRequestBody(encrypted.toString());\n } catch (error) {\n console.error('加密请求参数时出错:', error);\n }\n}",
799
+ "name": "自定义脚本",
800
+ "id": "3a0094827ff006"
801
+ }
802
+ ],
803
+ "post_tasks": [
804
+ {
805
+ "type": "customScript",
806
+ "enabled": 1,
807
+ "data": "// This code is generated by [Apipost] AI.\nfunction generateVisualizerScript() {\n try {\n const objData = pm.response.json();\n const template = `\n <style>\n .table { background-color: #FFFFFF; border-radius: 8px; }\n .table th { background-color: #F0F0F0; padding: 10px; border-bottom: 1px solid #DDDDDD; }\n .table td { padding: 10px; border-bottom: 1px solid #DDDDDD; }\n </style>\n <table class=\"table\">\n <thead>\n <tr>\n <th>字段</th>\n <th>值</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>resultcode</td>\n <td>{{resultcode}}</td>\n </tr>\n <tr>\n <td>reason</td>\n <td>{{reason}}</td>\n </tr>\n <tr>\n <td>result</td>\n <td>{{result}}</td>\n </tr>\n <tr>\n <td>error_code</td>\n <td>{{error_code}}</td>\n </tr>\n </tbody>\n </table>\n `;\n pm.visualizer.set(template, objData);\n } catch (e) {\n console.error('生成可视化脚本时出错:', e);\n }\n}\ngenerateVisualizerScript();",
808
+ "name": "自定义脚本",
809
+ "id": "39e9dc0dfff010"
810
+ },
811
+ {
812
+ "type": "customScript",
813
+ "enabled": 1,
814
+ "data": "// 断言响应状态码是否为200\npm.test(\"响应状态码为200\", function () {\n pm.response.to.have.status(200);\n});\n// 断言响应时间是否小于300毫秒(行业推荐平均响应时间)\npm.test(\"响应时间小于300毫秒\", function () {\n pm.expect(pm.response.responseTime).to.be.below(300);\n});\n// 断言响应体中resultcode字段是否为101\npm.test(\"响应体中resultcode字段为101\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.resultcode).to.eql(\"101\");\n});\n// 断言响应体中reason字段是否为错误的请求KEY\npm.test(\"响应体中reason字段为错误的请求KEY\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.reason).to.eql(\"错误的请求KEY\");\n});\n// 断言响应体中error_code字段是否为10001\npm.test(\"响应体中error_code字段为10001\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.error_code).to.eql(10001);\n});\n// 断言响应体是否为有效的JSON格式\npm.test(\"响应体必须是json\", function () {\n pm.response.to.be.json;\n});",
815
+ "name": "AI断言",
816
+ "id": "3a01bc577ff018"
817
+ },
818
+ {
819
+ "type": "customScript",
820
+ "enabled": 1,
821
+ "data": "// 断言响应状态码是否为200\npm.test(\"响应状态码为200\", function () {\n pm.response.to.have.status(200);\n});\n// 断言响应时间是否小于300毫秒(行业推荐平均响应时间)\npm.test(\"响应时间小于300毫秒\", function () {\n pm.expect(pm.response.responseTime).to.be.below(300);\n});\n// 断言响应体中的resultcode是否为101\npm.test(\"响应体中的resultcode为101\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.resultcode).to.eql(\"101\");\n});\n// 断言响应体中的reason是否为错误的请求KEY\npm.test(\"响应体中的reason为错误的请求KEY\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.reason).to.eql(\"错误的请求KEY\");\n});\n// 断言响应体中的error_code是否为10001\npm.test(\"响应体中的error_code为10001\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.error_code).to.eql(10001);\n});",
822
+ "name": "AI Assertion",
823
+ "id": "3a025d25fff008"
824
+ },
825
+ {
826
+ "type": "customScript",
827
+ "enabled": 1,
828
+ "data": "// 断言响应状态码是否为200,通常200表示请求成功\npm.test(\"响应状态码为200\", function () {\n pm.response.to.have.status(200);\n});\n// 断言响应时间是否小于300毫秒,300毫秒是行业推荐的平均响应时间\npm.test(\"响应时间小于300毫秒\", function () {\n pm.expect(pm.response.responseTime).to.be.below(300);\n});\n// 断言响应体中的resultcode字段是否为101\npm.test(\"响应体中的resultcode为101\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.resultcode).to.eql(\"101\");\n});\n// 断言响应体中的reason字段是否为'错误的请求KEY'\npm.test(\"响应体中的reason为错误的请求KEY\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.reason).to.eql(\"错误的请求KEY\");\n});\n// 断言响应体中的error_code字段是否为10001\npm.test(\"响应体中的error_code为10001\", function () {\n var jsonData = pm.response.json();\n pm.expect(jsonData.error_code).to.eql(10001);\n});",
829
+ "name": "AI断言",
830
+ "id": "3a1eabf07ff00c"
831
+ }
832
+ ],
833
+ "header": {
834
+ "parameter": [
835
+ {
836
+ "param_id": "38670379f2a15a",
837
+ "description": "请求内容类型",
838
+ "field_type": "string",
839
+ "is_checked": 1,
840
+ "key": "Content-Type",
841
+ "not_null": 1,
842
+ "value": "application/x-www-form-urlencoded",
843
+ "schema": {
844
+ "type": "string"
845
+ }
846
+ }
847
+ ]
848
+ },
849
+ "query": {
850
+ "query_add_equal": 1,
851
+ "parameter": [
852
+ {
853
+ "param_id": "3867057a72a15c",
854
+ "field_type": "string",
855
+ "is_checked": 1,
856
+ "key": "a",
857
+ "not_null": 1,
858
+ "value": "{{a}}",
859
+ "description": "在个人中心->我的数据,接口名称上方查看"
860
+ }
861
+ ]
862
+ },
863
+ "cookie": {
864
+ "cookie_encode": 1,
865
+ "parameter": []
866
+ },
867
+ "restful": {
868
+ "parameter": []
869
+ }
870
+ }
871
+ }
1582
872
  }
1583
873
  }
1584
874
  ]