Commit f041a972 by zhangjingdong

补充验证code

parent dd2514d7
No preview for this file type
{ {
...@@ -9,12 +9,110 @@ ...@@ -9,12 +9,110 @@
"62246627-c76c-4e83-99c5-eae45302f950", "62246627-c76c-4e83-99c5-eae45302f950",
"f59a8d39-c737-4eff-88ab-d6e620cfd980", "f59a8d39-c737-4eff-88ab-d6e620cfd980",
"e182c84d-8ec1-417e-af6b-486d78786781", "e182c84d-8ec1-417e-af6b-486d78786781",
"dd4da32a-1895-4c26-9b33-1a1d3d8bc54e" "430603ba-54a4-4c7b-9a11-a9af5156dfc3",
"9e0a4a32-f71a-4265-8665-59eb1600627b",
"a8d0d72d-6481-4571-a4f0-0e81faa20b1a",
"580a1db9-448e-452b-8588-fdae50dcc960",
"dd4da32a-1895-4c26-9b33-1a1d3d8bc54e",
"851d8cc6-4609-490a-b7ba-e3400244b043"
], ],
"folders_order": [], "folders_order": [],
"folders": [], "folders": [],
"requests": [ "requests": [
{ {
"id": "430603ba-54a4-4c7b-9a11-a9af5156dfc3",
"name": "app用户活动报名",
"url": "{{gateway-user}}/app/new/activity/enroll\n",
"description": "",
"data": [],
"dataMode": "raw",
"headerData": [
{
"key": "access-Token",
"value": "{{access-Token}}",
"description": "",
"enabled": true
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"method": "POST",
"pathVariableData": [],
"queryParams": [],
"auth": null,
"events": [
{
"listen": "test",
"script": {
"id": "f008e296-82a3-4d20-a473-7c2827a257eb",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
""
]
}
}
],
"folder": null,
"rawModeData": "{\n \"activityId\":196,\n \"enrollStatus\": \"CONFIRM\",\n\n \"townId\": 1\n}",
"headers": "access-Token: {{access-Token}}\nContent-Type: application/json\n",
"pathVariables": {}
},
{
"id": "580a1db9-448e-452b-8588-fdae50dcc960",
"name": "app端获取活动详情",
"url": "{{gateway-user}}/app/new/activity/get/comment/info/{{activityId}}",
"description": "",
"data": null,
"dataMode": "params",
"headerData": [
{
"key": "access-Token",
"value": "{{access-Token}}",
"description": "",
"enabled": true
}
],
"method": "GET",
"pathVariableData": [],
"queryParams": [],
"auth": null,
"events": [
{
"listen": "test",
"script": {
"id": "2fd3ff6b-1da2-4b16-bf00-480169689fe1",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
""
]
}
}
],
"folder": null,
"headers": "access-Token: {{access-Token}}\n",
"pathVariables": {}
},
{
"id": "62246627-c76c-4e83-99c5-eae45302f950", "id": "62246627-c76c-4e83-99c5-eae45302f950",
"name": "用户登录", "name": "用户登录",
"url": "{{gateway-user}}/app/login", "url": "{{gateway-user}}/app/login",
...@@ -35,7 +133,7 @@ ...@@ -35,7 +133,7 @@
{ {
"listen": "test", "listen": "test",
"script": { "script": {
"id": "70432a1b-2ab3-4c70-8430-b63be532d565", "id": "a9c52209-1773-48db-86df-106c6ee71da4",
"type": "text/javascript", "type": "text/javascript",
"exec": [ "exec": [
"// console.log(\"----------------responseBody--------------\"+responseBody);", "// console.log(\"----------------responseBody--------------\"+responseBody);",
...@@ -45,7 +143,7 @@ ...@@ -45,7 +143,7 @@
"if(jsonData.data !== null || jsonData.data !==\"\")", "if(jsonData.data !== null || jsonData.data !==\"\")",
"{", "{",
" tests[\"accessToken\"] = true;", " tests[\"accessToken\"] = true;",
" postman.setEnvironmentVariable(\"access_Token\",jsonData.data.accessToken);", " postman.setEnvironmentVariable(\"access-Token\",jsonData.data.accessToken);",
" ", " ",
"}", "}",
"else", "else",
...@@ -69,21 +167,151 @@ ...@@ -69,21 +167,151 @@
} }
], ],
"folder": null, "folder": null,
"rawModeData": "{\n \"userPhone\": \"18670340158\",\n \"userPassword\": \"xqw123\",\n \"equipment\": \"c5d93c486a95d658\",\n \"channelId\": 1\n}", "rawModeData": "{\n \"userPhone\": {{user_phone}},\n \"userPassword\": \"123456\",\n \"equipment\": \"c5d93c486a95d658\",\n \"channelId\": 1\n}",
"headers": "Content-Type: application/json\n", "headers": "Content-Type: application/json\n",
"pathVariables": {} "pathVariables": {}
}, },
{ {
"id": "851d8cc6-4609-490a-b7ba-e3400244b043",
"name": "获取置顶活动",
"url": "{{gateway-user}}/app/new/activity/get/top/one/1/ENTERPRISE",
"description": "",
"data": null,
"dataMode": "params",
"headerData": [
{
"key": "access-Token",
"value": "{{access-Token}}",
"description": "",
"enabled": true
}
],
"method": "GET",
"pathVariableData": [],
"queryParams": [],
"auth": null,
"events": [
{
"listen": "test",
"script": {
"id": "bb090dcf-2104-4a22-8b39-b8220af62c9a",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
""
]
}
}
],
"folder": null,
"headers": "access-Token: {{access-Token}}\n",
"pathVariables": {}
},
{
"id": "9e0a4a32-f71a-4265-8665-59eb1600627b",
"name": "app活动评论",
"url": "{{gateway-user}}/app/new/activity/comment",
"description": "",
"data": [],
"dataMode": "raw",
"headerData": [
{
"key": "access-Token",
"value": "{{access-Token}}",
"description": "",
"enabled": true
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"method": "POST",
"pathVariableData": [],
"queryParams": [],
"auth": null,
"events": [
{
"listen": "test",
"script": {
"id": "192ef5c4-1ad4-45ff-86ad-a86b560df9a5",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
""
]
}
}
],
"folder": null,
"rawModeData": "{\n \"activityId\": {{activityId}},\n \"commentType\": \"ACTIVITY\",\n \"commentStatus\": \"COMMENT\",\n \"comment\": \"hahhaahhahahahahahahh\",\n \"commentImg\": [\n \"string\"\n ]\n}",
"headers": "access-Token: {{access-Token}}\nContent-Type: application/json\n",
"pathVariables": {}
},
{
"id": "a8d0d72d-6481-4571-a4f0-0e81faa20b1a",
"name": "app二维码获取活动详情",
"url": "{{gateway-user}}/app/new/activity/get/code/info/{{activityId}}",
"description": "",
"data": null,
"dataMode": "params",
"headerData": [],
"method": "GET",
"pathVariableData": [],
"queryParams": [],
"auth": null,
"events": [
{
"listen": "test",
"script": {
"id": "8ff40371-ba44-4c89-85ed-3f9def78095b",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
""
]
}
}
],
"folder": null,
"headers": "",
"pathVariables": {}
},
{
"id": "dd4da32a-1895-4c26-9b33-1a1d3d8bc54e", "id": "dd4da32a-1895-4c26-9b33-1a1d3d8bc54e",
"name": "app获取某一个活动详情", "name": "app获取某一个活动详情",
"url": "{{gateway-user}}/app/activity/196", "url": "{{gateway-user}}/app/activity/{{activityId}}",
"description": "", "description": "",
"data": null, "data": null,
"dataMode": "params", "dataMode": "params",
"headerData": [ "headerData": [
{ {
"key": "access-token", "key": "access-token",
"value": "{{access_Token}}", "value": "{{access-Token}}",
"description": "", "description": "",
"enabled": true "enabled": true
} }
...@@ -92,9 +320,29 @@ ...@@ -92,9 +320,29 @@
"pathVariableData": [], "pathVariableData": [],
"queryParams": [], "queryParams": [],
"auth": null, "auth": null,
"events": [], "events": [
{
"listen": "test",
"script": {
"id": "93f6cff3-ef65-40e9-ba2b-716185de2860",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
""
]
}
}
],
"folder": null, "folder": null,
"headers": "access-token: {{access_Token}}\n", "headers": "access-token: {{access-Token}}\n",
"pathVariables": {} "pathVariables": {}
}, },
{ {
...@@ -107,19 +355,13 @@ ...@@ -107,19 +355,13 @@
"headerData": [ "headerData": [
{ {
"key": "access-token", "key": "access-token",
"value": "{{access_Token}}", "value": "{{access-Token}}",
"description": "", "description": "",
"enabled": true "enabled": true
}, },
{ {
"key": "Content-Type", "key": "Content-Type",
"value": "application/json" "value": "application/json"
},
{
"key": "refreshToken",
"value": "{{refreshToken}}",
"description": "",
"enabled": true
} }
], ],
"method": "POST", "method": "POST",
...@@ -141,10 +383,30 @@ ...@@ -141,10 +383,30 @@
} }
], ],
"auth": null, "auth": null,
"events": [], "events": [
{
"listen": "test",
"script": {
"id": "74323a15-c4af-40e0-8e6e-1bd188b95239",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
""
]
}
}
],
"folder": null, "folder": null,
"rawModeData": "{\n \"blockType\": \"ENTERPRISE\",\n \"userId\": 0\n}", "rawModeData": "{\n \"blockType\": \"ENTERPRISE\"\n}",
"headers": "access-token: {{access_Token}}\nContent-Type: application/json\nrefreshToken: {{refreshToken}}\n", "headers": "access-token: {{access-Token}}\nContent-Type: application/json\n",
"pathVariables": {} "pathVariables": {}
}, },
{ {
...@@ -157,7 +419,7 @@ ...@@ -157,7 +419,7 @@
"headerData": [ "headerData": [
{ {
"key": "access-token", "key": "access-token",
"value": "{{access_Token}}", "value": "{{access-Token}}",
"description": "", "description": "",
"enabled": true "enabled": true
}, },
...@@ -174,7 +436,7 @@ ...@@ -174,7 +436,7 @@
{ {
"listen": "test", "listen": "test",
"script": { "script": {
"id": "3ead7a4a-0d8a-4bbc-abfe-77e26a51ad71", "id": "3c9905dc-9e88-48dc-81d6-52361e995629",
"type": "text/javascript", "type": "text/javascript",
"exec": [ "exec": [
"var jsonData = JSON.parse(responseBody);", "var jsonData = JSON.parse(responseBody);",
...@@ -192,8 +454,8 @@ ...@@ -192,8 +454,8 @@
} }
], ],
"folder": null, "folder": null,
"rawModeData": "{\n \"blockType\": \"ENTERPRISE\",\n \"townId\": 1 ,\n \"userId\": 0\n}", "rawModeData": "{\n \"blockType\": \"ENTERPRISE\",\n \"townId\": 1\n}",
"headers": "access-token: {{access_Token}}\nContent-Type: application/json\n", "headers": "access-token: {{access-Token}}\nContent-Type: application/json\n",
"pathVariables": {} "pathVariables": {}
} }
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment