Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangjingdong
/
bihe_interface_test
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f041a972
authored
Nov 27, 2018
by
zhangjingdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充验证code
parent
dd2514d7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
285 additions
and
23 deletions
+285
-23
碧合app/.DS_Store
+0
-0
碧合app/活动/活动.postman_collection.json
+285
-23
No files found.
碧合app/.DS_Store
View file @
f041a972
No preview for this file type
碧合app/活动/活动.postman_collection.json
View file @
f041a972
{
{
...
...
@@ -9,12 +9,110 @@
"62246627-c76c-4e83-99c5-eae45302f950"
,
"f59a8d39-c737-4eff-88ab-d6e620cfd980"
,
"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"
:
[],
"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}}
\n
Content-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"
,
"name"
:
"用户登录"
,
"url"
:
"{{gateway-user}}/app/login"
,
...
...
@@ -35,7 +133,7 @@
{
"listen"
:
"test"
,
"script"
:
{
"id"
:
"
70432a1b-2ab3-4c70-8430-b63be532d565
"
,
"id"
:
"
a9c52209-1773-48db-86df-106c6ee71da4
"
,
"type"
:
"text/javascript"
,
"exec"
:
[
"// console.log(
\"
----------------responseBody--------------
\"
+responseBody);"
,
...
...
@@ -45,7 +143,7 @@
"if(jsonData.data !== null || jsonData.data !==
\"\"
)"
,
"{"
,
" tests[
\"
accessToken
\"
] = true;"
,
" postman.setEnvironmentVariable(
\"
access
_
Token
\"
,jsonData.data.accessToken);"
,
" postman.setEnvironmentVariable(
\"
access
-
Token
\"
,jsonData.data.accessToken);"
,
" "
,
"}"
,
"else"
,
...
...
@@ -69,21 +167,151 @@
}
],
"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
"
,
"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}}
\n
Content-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"
,
"name"
:
"app获取某一个活动详情"
,
"url"
:
"{{gateway-user}}/app/activity/
196
"
,
"url"
:
"{{gateway-user}}/app/activity/
{{activityId}}
"
,
"description"
:
""
,
"data"
:
null
,
"dataMode"
:
"params"
,
"headerData"
:
[
{
"key"
:
"access-token"
,
"value"
:
"{{access
_
Token}}"
,
"value"
:
"{{access
-
Token}}"
,
"description"
:
""
,
"enabled"
:
true
}
...
...
@@ -92,9 +320,29 @@
"pathVariableData"
:
[],
"queryParams"
:
[],
"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
,
"headers"
:
"access-token: {{access
_
Token}}
\n
"
,
"headers"
:
"access-token: {{access
-
Token}}
\n
"
,
"pathVariables"
:
{}
},
{
...
...
@@ -107,19 +355,13 @@
"headerData"
:
[
{
"key"
:
"access-token"
,
"value"
:
"{{access
_
Token}}"
,
"value"
:
"{{access
-
Token}}"
,
"description"
:
""
,
"enabled"
:
true
},
{
"key"
:
"Content-Type"
,
"value"
:
"application/json"
},
{
"key"
:
"refreshToken"
,
"value"
:
"{{refreshToken}}"
,
"description"
:
""
,
"enabled"
:
true
}
],
"method"
:
"POST"
,
...
...
@@ -141,10 +383,30 @@
}
],
"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
,
"rawModeData"
:
"{
\n
\"
blockType
\"
:
\"
ENTERPRISE
\"
,
\n
\"
userId
\"
: 0
\n
}"
,
"headers"
:
"access-token: {{access
_Token}}
\n
Content-Type: application/json
\n
refreshToken: {{refreshToken}}
\n
"
,
"rawModeData"
:
"{
\n
\"
blockType
\"
:
\"
ENTERPRISE
\"\n
}"
,
"headers"
:
"access-token: {{access
-Token}}
\n
Content-Type: application/json
\n
"
,
"pathVariables"
:
{}
},
{
...
...
@@ -157,7 +419,7 @@
"headerData"
:
[
{
"key"
:
"access-token"
,
"value"
:
"{{access
_
Token}}"
,
"value"
:
"{{access
-
Token}}"
,
"description"
:
""
,
"enabled"
:
true
},
...
...
@@ -174,7 +436,7 @@
{
"listen"
:
"test"
,
"script"
:
{
"id"
:
"3
ead7a4a-0d8a-4bbc-abfe-77e26a51ad71
"
,
"id"
:
"3
c9905dc-9e88-48dc-81d6-52361e995629
"
,
"type"
:
"text/javascript"
,
"exec"
:
[
"var jsonData = JSON.parse(responseBody);"
,
...
...
@@ -192,8 +454,8 @@
}
],
"folder"
:
null
,
"rawModeData"
:
"{
\n
\"
blockType
\"
:
\"
ENTERPRISE
\"
,
\n
\"
townId
\"
: 1
,
\n
\"
userId
\"
: 0
\n
}"
,
"headers"
:
"access-token: {{access
_
Token}}
\n
Content-Type: application/json
\n
"
,
"rawModeData"
:
"{
\n
\"
blockType
\"
:
\"
ENTERPRISE
\"
,
\n
\"
townId
\"
: 1
\n
}"
,
"headers"
:
"access-token: {{access
-
Token}}
\n
Content-Type: application/json
\n
"
,
"pathVariables"
:
{}
}
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment