代码拉取完成,页面将自动刷新
{
"info": {
"_postman_id": "2c2a7844-30ab-405d-93d3-f530d66f0760",
"name": "crm",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "悟空登录",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});\r",
"\r",
"\r",
"pm.test(\"Body matches Admin-Token\", function () {\r",
" pm.expect(pm.response.text()).to.include(\"Admin-Token\");\r",
"});\r",
"\r",
"var jsonData= pm.response.json();\r",
"token=jsonData[\"Admin-Token\"]\r",
"pm.environment.set(\"token\", token);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Admin-Token",
"value": "{{token}}",
"type": "text"
},
{
"warning": "This is a duplicate header and will be overridden by the Content-Type header generated by Postman.",
"key": "Content-Type",
"value": "application/json;charset=UTF-8",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "username",
"value": "17629630517",
"type": "text"
},
{
"key": "password",
"value": "412824qaZ",
"type": "text"
}
],
"options": {
"raw": {
"language": "text"
}
}
},
"url": {
"raw": "http://192.168.0.67:8080/login",
"protocol": "http",
"host": [
"192",
"168",
"0",
"67"
],
"port": "8080",
"path": [
"login"
]
}
},
"response": []
},
{
"name": "upload",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
"\r",
"\r",
"\r",
"pm.test(\"Body matches batchId\", function () {\r",
" pm.expect(pm.response.text()).to.include(\"batchId\");\r",
"});\r",
"\r",
"pm.test(\"Body matches Admin-Token\",function(){\r",
" pm.expect(pm.response.text()).to.include('\"code\":0');\r",
"});\r",
"var jsonData = pm.response.json();\r",
"batchId=jsonData[\"batchId\"]\r",
"pm.environment.set(\"batchId\", batchId);\r",
""
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "POST",
"header": [
{
"key": "Admin-Token",
"value": "{{token}}",
"type": "text"
},
{
"key": "",
"value": "",
"type": "text",
"disabled": true
},
{
"key": "Content-Type",
"value": "multipart/form-data; boundary=----WebKitFormBoundaryutmyealcptZQG4zl",
"type": "text"
},
{
"key": "cookie",
"value": "SECKEY_ABVK=2YOSRN63mgQ9/TLV/EaTf03U4JiVuxIWRjVxb5fTomA%3D; BMAP_SECKEY=eStKaZFrA4hAtoZ8qiXGcPY8P6T66UQrlyU9BNtkTgm577dhE6K3smg_6mhXBuxu5aXMuQlzrwGaV9-jVxbVAm1Hrpq8KQ1pNTH-mJ4uM1o9tOZDo5Fe0LuRSFxSV21G6bcuVGF-V6AyuWMeigOIRyMXnNSGj8saplJWbxq8bQgPXLSbTILsE7PJT5LhX4fw",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "type",
"value": "img",
"type": "text"
},
{
"key": "file",
"type": "file",
"src": "85F57EB4B90EA04E59E3BF116156A090.jpg"
}
]
},
"url": {
"raw": "http://192.168.0.67:8080/file/upload",
"protocol": "http",
"host": [
"192",
"168",
"0",
"67"
],
"port": "8080",
"path": [
"file",
"upload"
]
}
},
"response": []
},
{
"name": "addOrUpdate",
"event": [
{
"listen": "test",
"script": {
"exec": [
"\r",
"\r",
"// pm.test(\"Body matches Admin-Token\",function(){\r",
"// pm.expect(pm.response.text()).to.include('\"code\":0');\r",
"// });\r",
"// pm.test(\"Body matches batchId\", function () {\r",
"// pm.expect(pm.response.text()).to.include(\"batchId\");\r",
"// });\r",
"\r",
"// var jsonData = pm.response.json();\r",
"// batchId=jsonData[\"batchId\"]\r",
"// pm.environment.set(\"batchId\", batchId);\r",
"\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Admin-Token",
"value": "{{token}}",
"type": "text"
},
{
"key": "Accept",
"value": "application/json, text/plain, */*",
"type": "text"
},
{
"key": "Accept-Encoding",
"value": "gzip, deflate",
"type": "text"
},
{
"key": "Connection",
"value": "keep-alive",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json;charset=UTF-8",
"type": "text"
}
],
"body": {
"mode": "graphql",
"graphql": {
"query": "",
"variables": ""
}
},
"url": {
"raw": "http://192.168.0.67:8080/OaLog/addOrUpdate",
"protocol": "http",
"host": [
"192",
"168",
"0",
"67"
],
"port": "8080",
"path": [
"OaLog",
"addOrUpdate"
]
}
},
"response": []
}
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。