From 38ccd7f99f08f5ab2a00c8fdd84c469ac79d3fa9 Mon Sep 17 00:00:00 2001 From: liguangyu06 <1666071293@qq.com> Date: Mon, 5 Feb 2024 15:38:56 +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 --- ...30\345\212\237\350\203\275\351\252\214\350\257\201.py" | 4 ++-- ...0_\345\272\223\345\255\230\351\205\215\347\275\256.py" | 8 ++++---- ...01\345\261\236\346\200\247\345\210\227\350\241\250.py" | 4 ++-- ...30\351\205\215\347\275\256\345\210\227\350\241\250.py" | 4 ++-- ...50\345\212\237\350\203\275\351\252\214\350\257\201.py" | 4 ++-- ...47\345\223\201\347\272\277\347\256\241\347\220\206.py" | 4 ++-- ...47\345\223\201\347\272\277\350\257\246\346\203\205.py" | 4 ++-- ...01\351\231\220\350\264\255\345\210\227\350\241\250.py" | 6 +++--- ...42\345\256\242\346\210\267\344\277\241\346\201\257.py" | 6 +++--- ...66\345\215\225\345\221\230\345\210\227\350\241\250.py" | 6 +++--- ...32\345\212\241\345\221\230\345\210\227\350\241\250.py" | 6 +++--- ...01\345\261\236\346\200\247\345\210\227\350\241\250.py" | 6 +++--- ...74\351\205\215\347\275\256\345\210\227\350\241\250.py" | 4 ++-- ...30\351\205\215\347\275\256\350\257\246\346\203\205.py" | 4 ++-- data/cmdc_product/data | 8 ++++---- 15 files changed, 39 insertions(+), 39 deletions(-) diff --git "a/air_case/cmdc_product/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_product/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.py" index 4fd184ed..7b25ac5c 100644 --- "a/air_case/cmdc_product/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_product/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\272\247\345\223\201\347\272\277\345\210\206\351\205\215\345\210\266\345\215\225\345\221\230\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -15,8 +15,8 @@ import json module = "cmdc_product" # 第一步登录获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.py" "b/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.py" index b3c4ce7c..e5ef4753 100644 --- "a/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.py" +++ "b/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\210\227\350\241\250_\345\272\223\345\255\230\351\205\215\347\275\256.py" @@ -16,19 +16,19 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) -# 获取产品线列表 +# 获取商品列表 url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url20") request_body = commonFuc().get_business_data(module, "payload20") # 发送请求 result = requests.post(url, json=request_body, headers=headers) result = json.loads(result.content) - +# print(result) # 生成一个随机数字,用于后续随机选择某一条商品属性信息 rebate_random = random.randint(0, len(result["data"]["list"]) - 1) # 获取商品信息 diff --git "a/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" index 6f906fc9..b52fe7cc 100644 --- "a/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" @@ -17,8 +17,8 @@ module = "cmdc_product" # 第一步登录后台运营平台获取cmdc_access_token # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.py" index 615d05b0..b4ae3cbd 100644 --- "a/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.air/\345\210\227\350\241\250\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\272\223\345\255\230\351\205\215\347\275\256\345\210\227\350\241\250.py" @@ -16,8 +16,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_product/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" index afaea17c..1a791c06 100644 --- "a/air_case/cmdc_product/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_product/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\345\217\221\350\264\247\346\227\266\351\227\264\350\247\204\345\210\231\345\220\257\347\224\250\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -15,8 +15,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.py" "b/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.py" index 21cd762b..2b49005b 100644 --- "a/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.py" +++ "b/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\347\256\241\347\220\206.py" @@ -15,8 +15,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.py" "b/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.py" index 47e88b17..736514c7 100644 --- "a/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.py" +++ "b/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\344\272\247\345\223\201\347\272\277\350\257\246\346\203\205.py" @@ -15,8 +15,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.py" index 3dca013f..84dda15a 100644 --- "a/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\225\206\345\223\201\351\231\220\350\264\255\345\210\227\350\241\250.py" @@ -15,8 +15,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) @@ -27,7 +27,7 @@ request_body = commonFuc().get_business_data(module, "payload41") # 发送请求 result = requests.get(url, params=request_body, headers=headers) result = json.loads(result.content) - +# print(result) # 生成随机数 product_random = random.randint(0, len(result["data"]["list"]) - 1) # 获取商品限购信息 diff --git "a/air_case/cmdc_product/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.air/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.py" "b/air_case/cmdc_product/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.air/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.py" index 67f77979..124e56bc 100644 --- "a/air_case/cmdc_product/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.air/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.py" +++ "b/air_case/cmdc_product/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.air/\346\250\241\347\263\212\346\237\245\350\257\242\345\256\242\346\210\267\344\277\241\346\201\257.py" @@ -15,14 +15,14 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) # 模糊查询字段 -customer_msg = "湖南" +customer_msg = "广州" # 进行客户信息模糊查询 url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url15") request_body = commonFuc().get_business_data(module, "payload15", customer_msg) diff --git "a/air_case/cmdc_product/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.py" index f89f8782..737166d5 100644 --- "a/air_case/cmdc_product/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\344\272\247\345\223\201\347\272\277\345\210\266\345\215\225\345\221\230\345\210\227\350\241\250.py" @@ -17,8 +17,8 @@ module = "cmdc_product" # 第一步登录 # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) @@ -65,7 +65,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") # 查询数据库中产品线对应制单员数量 sql = "SELECT count(t.id) FROM `cmdc-product`.ic_marker_member t " \ - "WHERE userId = 2795 and productLineCode = '{}'".format(product_line_code) + "WHERE userId = 114378 and productLineCode = '{}'".format(product_line_code) total = mysql_handle.selectSql(host, port, user, pwd, "cmdc-product", sql)[0][0] # 获取预期结果 diff --git "a/air_case/cmdc_product/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.py" index 9cc4aa97..57becaed 100644 --- "a/air_case/cmdc_product/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\210\266\345\215\225\345\221\230\346\210\226\350\200\205\344\270\232\345\212\241\345\221\230\345\210\227\350\241\250.py" @@ -16,8 +16,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) @@ -51,7 +51,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db") # 查询数据库中对应制单员数量 sql = "SELECT count(t.userId) FROM `cmdc-user`.cmdc_user t " \ - "WHERE userType = 1 and companyId =6 and deleteSign = 0 in" \ + "WHERE userType = 1 and companyId =7 and deleteSign = 0 in" \ "(SELECT t.userId FROM `cmdc-user`.cmdc_manager_user t)" total = mysql_handle.selectSql(host, port, user, pwd, "cmdc-user", sql)[0][0] diff --git "a/air_case/cmdc_product/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" index be2c777c..0f9571ce 100644 --- "a/air_case/cmdc_product/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\225\206\345\223\201\345\261\236\346\200\247\345\210\227\350\241\250.py" @@ -16,8 +16,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) @@ -47,7 +47,7 @@ result = {"total": result["data"]["total"]} result["api_time"] = api_time # print(result) # 查询数据库中对应公司对应的商品属性数量 -sql = "SELECT count(t.productId) FROM `cmdc-product`.ic_product_properties t WHERE companyCode = 00111 and deleteSign = 0" +sql = "SELECT count(t.productId) FROM `cmdc-product`.ic_product_properties t WHERE companyCode = 00102 and deleteSign = 0" total = mysql_handle.selectSql(host, port, user, pwd, "cmdc-product", sql)[0][0] # 获取预期结果 diff --git "a/air_case/cmdc_product/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.py" "b/air_case/cmdc_product/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.py" index 8e444d6f..140b387a 100644 --- "a/air_case/cmdc_product/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_product/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.air/\350\216\267\345\217\226\345\261\236\346\200\247\345\200\274\351\205\215\347\275\256\345\210\227\350\241\250.py" @@ -15,8 +15,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git "a/air_case/cmdc_product/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.air/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.py" "b/air_case/cmdc_product/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.air/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.py" index 33104320..54be243b 100644 --- "a/air_case/cmdc_product/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.air/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.py" +++ "b/air_case/cmdc_product/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.air/\350\216\267\345\217\226\345\272\223\345\255\230\351\205\215\347\275\256\350\257\246\346\203\205.py" @@ -16,8 +16,8 @@ import json module = "cmdc_product" # 获取登录所需账号密码 -username = commonFuc().get_business_data(module, "username1") -password = commonFuc().get_business_data(module, "password1") +username = commonFuc().get_business_data(module, "username2") +password = commonFuc().get_business_data(module, "password2") # 获取登录后Cmdc_access_token cmdc_access_token = CmdcDoLogin(username, password).get_token() headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) diff --git a/data/cmdc_product/data b/data/cmdc_product/data index 2f5db212..606902eb 100644 --- a/data/cmdc_product/data +++ b/data/cmdc_product/data @@ -159,13 +159,13 @@ checkDict19: {"lineCode":"%s"} #测试场景二十:获取商品列表_库存配置 "url20": "/product/public/getListed" -"payload20": {"pageNumber":10,"pageStart":1,"productCode":"","productName":"","userNo":"","companyCode":"00111","pageSize":10,"pageNum":1,"specifications":""} +"payload20": {"pageNumber":10,"pageStart":1,"productCode":"","productName":"","userNo":"","companyCode":"00102","pageSize":10,"pageNum":1,"specifications":""} #预期结果 checkDict20: {"success":true,"code":"200","message":"OK"} #测试场景二十一:列表查询条件验证_商品列表_库存配置 "url21": "/product/public/getListed" -"payload21": {"pageNumber":10,"pageStart":1,"productCode":"%s","productName":"%s","userNo":"","companyCode":"00111","pageSize":10,"pageNum":1,"specifications":"","total":1629} +"payload21": {"pageNumber":10,"pageStart":1,"productCode":"%s","productName":"%s","userNo":"","companyCode":"00102","pageSize":10,"pageNum":1,"specifications":"","total":1629} #预期结果 checkDict21: {"productCode":"%s"} @@ -556,13 +556,13 @@ checkDict76: {"success":false,"code":"200","message":"操作成功!","data":null #测试场景七十七:获取产品线详情 "url77": "/product/back/queryProductLineDetail" -"payload77": {"productCode":"","productName":"","specifications":"","materialCode":"","manufacturer":"","pageNum":1,"pageSize":10,"productLineCode":"3041"} +"payload77": {"productCode":"","productName":"","specifications":"","materialCode":"","manufacturer":"","pageNum":1,"pageSize":10,"productLineCode":"10052433"} #预期结果 checkDict77: {"success":true,"code":"200","message":"OK"} #测试场景七十八:查询条件验证_产品线详情 "url78": "/product/back/queryProductLineDetail" -"payload78": {"productCode":"%s","productName":"%s","specifications":"%s","materialCode":"%s","manufacturer":"%s","pageNum":1,"pageSize":10,"productLineCode":"3041"} +"payload78": {"productCode":"%s","productName":"%s","specifications":"%s","materialCode":"%s","manufacturer":"%s","pageNum":1,"pageSize":10,"productLineCode":"10052433"} #预期结果 checkDict78: {"productCode":"%s"} -- GitLab