Commit bbc40716 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent bff3319e
......@@ -23,7 +23,8 @@ cmdc_access_token = CmdcMaiiLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token)
# 生成随机数据
random_code = random.randint(0, 8)
random_code = random.randint(0, 7)
# 第二步进行规格型号模糊匹配查询
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url10")
request_body = commonFuc().get_business_data(module, "payload10", random_code)
......@@ -44,7 +45,7 @@ result = json.loads(result.content)
# 获取查询结果中数据
result = {"data": result["data"][0][0]}
result["api_time"] = api_time
# print(result)
print(result)
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict10", random_code)
# print(check_dict)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment