Commit e30d0160 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent 081c2519
......@@ -49,8 +49,8 @@ result1 = requests.post(url, json=request_body, headers=headers)
result1 = json.loads(result1.content)
# 获取终端流向详情信息
product_info = result1["data"][0]["productName"]
material_code = result1["data"][0]["materialCode"]
product_info = (result1["data"][0]["productName"] if result1["data"][0]["productName"] else "")
material_code = (result1["data"][0]["materialCode"] if result1["data"][0]["materialCode"] else "")
order_start_time = result1["data"][0]["orderTime"][:10]
upload_start_time = result1["data"][0]["orderTime"][:10]
product_code = result1["data"][0]["productCode"]
......
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