Commit 1e8bada1 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程九脚本编写

parent 4a2c6fed
...@@ -76,11 +76,12 @@ def import_goods(hosGoodsId): ...@@ -76,11 +76,12 @@ def import_goods(hosGoodsId):
goodsId=hosGoodsId.replace(get_hosid(), "") goodsId=hosGoodsId.replace(get_hosid(), "")
# #请求体 # #请求体
request_body = commonFuc().get_business_data(module, "payload32_1",get_hosid(), goodsId,branch_id) request_body = commonFuc().get_business_data(module, "payload32_1",get_hosid(), goodsId,branch_id)
print(request_body) print('import_goods',request_body)
# # # 发送请求 # # # 发送请求
while True: while True:
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
total=commonFuc().analysis_json('total',commonFuc().analysis_json('data',result)) total=commonFuc().analysis_json('total',commonFuc().analysis_json('data',result))
print('import_goods', total)
if total==0: if total==0:
print('产品暂时没有同步到内网,等待6秒') print('产品暂时没有同步到内网,等待6秒')
time.sleep(6) time.sleep(6)
......
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