Commit 90461e6d authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程一脚本提交

parent 5e52921e
...@@ -119,6 +119,7 @@ def import_goods(hosGoodsId): ...@@ -119,6 +119,7 @@ def import_goods(hosGoodsId):
commonFuc().get_business_data(module, "X-APP-CODE")) commonFuc().get_business_data(module, "X-APP-CODE"))
# 获取院区id # 获取院区id
branch_id = FileUtils().r_info(module, '院区新增')["branch_id"] branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
hosGoodsId=hosGoodsId.replace('h0347','')
while True: while True:
# #请求体 # #请求体
request_body = commonFuc().get_business_data(module, "payload33_1", branch_id,hosGoodsId) request_body = commonFuc().get_business_data(module, "payload33_1", branch_id,hosGoodsId)
...@@ -126,7 +127,8 @@ def import_goods(hosGoodsId): ...@@ -126,7 +127,8 @@ def import_goods(hosGoodsId):
# # # 发送请求 # # # 发送请求
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
print('result', result) print('result', result)
total=commonFuc().analysis_json('total',result) data=commonFuc().analysis_json('total',result)
total=commonFuc().analysis_json('total',data)
if total==0: if total==0:
continue continue
else: else:
......
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