Commit b5849204 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

增加数据库检查模块脚本

parent 559bc69c
...@@ -806,6 +806,9 @@ def get_udi(type=1): # 退货出库扫条码 ...@@ -806,6 +806,9 @@ def get_udi(type=1): # 退货出库扫条码
print('request_body', request_body) print('request_body', request_body)
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
print('result', result) print('result', result)
code=commonFuc().analysis_json('code',result)
if code==1001:
commonFuc().check_text_exist_result_text('error', 'succees')
# # 将条码信息写入文件 # # 将条码信息写入文件
data = commonFuc().analysis_json('data', result) data = commonFuc().analysis_json('data', result)
list_a = [] list_a = []
......
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