Commit de11c189 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent 1ac874b8
...@@ -32,9 +32,9 @@ result = requests.post(url, json=request_body, headers=headers) ...@@ -32,9 +32,9 @@ result = requests.post(url, json=request_body, headers=headers)
result = json.loads(result.content) result = json.loads(result.content)
# 生成随机数 # 生成随机数
pr_random = random.randint(0, len(result["data"]) - 1) pr_random = random.randint(0, len(result["data"]["list"]) - 1)
# 获取商品信息 # 获取商品信息
customerInfo = result["data"][pr_random]["customerCode"] customerInfo = result["data"]["list"][pr_random]["customerCode"]
# 第三步商品预测明细导出操作 # 第三步商品预测明细导出操作
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url85") url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url85")
......
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