Commit a935d88f by zhangjingdong

更新我是业主脚本

parent 6e0618fe
{ {
{ {
"info": { "info": {
"_postman_id": "a2d5eb80-beb2-446f-86cc-ee5683db0bd2", "_postman_id": "8f5aeaed-5ee0-4659-bc6d-b23a37d52c82",
"name": "我是业主", "name": "我是业主",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
}, },
...@@ -56,10 +56,11 @@ ...@@ -56,10 +56,11 @@
{ {
"listen": "test", "listen": "test",
"script": { "script": {
"id": "587ed404-61d0-469c-af27-f160ecde9086", "id": "b17e8032-68b2-4012-8001-f2d5763bcec1",
"type": "text/javascript",
"exec": [ "exec": [
"var jsonData = JSON.parse(responseBody);", "var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")", "if(jsonData.code === \"0\" || jsonData.msg===\"您已认证此房产,无需重复认证\")",
"{", "{",
" tests[\"code\"] = true;", " tests[\"code\"] = true;",
"}", "}",
...@@ -68,8 +69,7 @@ ...@@ -68,8 +69,7 @@
" tests[\"code\"+jsonData.msg]=false;", " tests[\"code\"+jsonData.msg]=false;",
"}", "}",
"" ""
], ]
"type": "text/javascript"
} }
} }
], ],
...@@ -82,7 +82,6 @@ ...@@ -82,7 +82,6 @@
}, },
{ {
"key": "access-token", "key": "access-token",
"type": "text",
"value": "{{access-Token}}" "value": "{{access-Token}}"
} }
], ],
......
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