From 3c0be884bf873ca81683a7354aeedee806231f3e Mon Sep 17 00:00:00 2001 From: liguangyu06 <1666071293@qq.com> Date: Thu, 7 Mar 2024 09:44:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...201_\350\241\245\350\264\247\350\256\276\347\275\256.py" | 6 +++--- ...\247\350\256\276\347\275\256\344\277\241\346\201\257.py" | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git "a/air_case/cmdc_31st/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\350\241\245\350\264\247\350\256\276\347\275\256.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\350\241\245\350\264\247\350\256\276\347\275\256.py" "b/air_case/cmdc_31st/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\350\241\245\350\264\247\350\256\276\347\275\256.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\350\241\245\350\264\247\350\256\276\347\275\256.py" index 0a6df810..7cc0e6a7 100644 --- "a/air_case/cmdc_31st/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\350\241\245\350\264\247\350\256\276\347\275\256.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\350\241\245\350\264\247\350\256\276\347\275\256.py" +++ "b/air_case/cmdc_31st/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\350\241\245\350\264\247\350\256\276\347\275\256.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\350\241\245\350\264\247\350\256\276\347\275\256.py" @@ -15,8 +15,8 @@ import json module = "cmdc_31st" # 第一步登录后台运营系统获取token -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username4") +password = commonFuc().get_business_data(module, "password4") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) @@ -37,7 +37,7 @@ request_body = commonFuc().get_business_data(module, "payload15") # 发送请求 result = requests.post(url, json=request_body, headers=headers) result = json.loads(result.content) -print(result) +# print(result) # 生成随机数 set_random = random.randint(0, len(result["data"]["list"]) - 1) # 获取补货设置信息 diff --git "a/air_case/cmdc_31st/\346\240\271\346\215\256code\346\237\245\350\257\242\350\241\245\350\264\247\350\256\276\347\275\256\344\277\241\346\201\257.air/\346\240\271\346\215\256code\346\237\245\350\257\242\350\241\245\350\264\247\350\256\276\347\275\256\344\277\241\346\201\257.py" "b/air_case/cmdc_31st/\346\240\271\346\215\256code\346\237\245\350\257\242\350\241\245\350\264\247\350\256\276\347\275\256\344\277\241\346\201\257.air/\346\240\271\346\215\256code\346\237\245\350\257\242\350\241\245\350\264\247\350\256\276\347\275\256\344\277\241\346\201\257.py" index 71bed64c..30badef9 100644 --- "a/air_case/cmdc_31st/\346\240\271\346\215\256code\346\237\245\350\257\242\350\241\245\350\264\247\350\256\276\347\275\256\344\277\241\346\201\257.air/\346\240\271\346\215\256code\346\237\245\350\257\242\350\241\245\350\264\247\350\256\276\347\275\256\344\277\241\346\201\257.py" +++ "b/air_case/cmdc_31st/\346\240\271\346\215\256code\346\237\245\350\257\242\350\241\245\350\264\247\350\256\276\347\275\256\344\277\241\346\201\257.air/\346\240\271\346\215\256code\346\237\245\350\257\242\350\241\245\350\264\247\350\256\276\347\275\256\344\277\241\346\201\257.py" @@ -15,8 +15,8 @@ import json module = "cmdc_31st" # 第一步登录后台运营系统获取token -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username4") +password = commonFuc().get_business_data(module, "password4") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) -- GitLab