|
@@ -188,15 +188,15 @@ def api_webhook_get_file():
|
|
|
file.save('/home/excel/' + 'upload.csv')
|
|
|
status = UpLoadFile.uploadFile('upload.csv')
|
|
|
if status == 0:
|
|
|
- url = "http://api.tjyourong.com.cn/jeecg-boot/first/delivery/excelCallBack?msg={msg}".format(msg='success')
|
|
|
- requests.request("GET", url, headers=headers, data=payload)
|
|
|
- else:
|
|
|
- url = "http://api.tjyourong.com.cn/jeecg-boot/first/delivery/excelCallBack?msg={msg}".format(msg='error')
|
|
|
- requests.request("GET", url, headers=headers, data=payload)
|
|
|
- material_status = EtlFirstDeliveryValidMaterials().handler()
|
|
|
- if material_status == 0:
|
|
|
- url = "http://api.tjyourong.com.cn/jeecg-boot/first/delivery/excelCallBack?msg={msg}".format(msg='success')
|
|
|
- requests.request("GET", url, headers=headers, data=payload)
|
|
|
+ material_status = EtlFirstDeliveryValidMaterials().handler()
|
|
|
+ if material_status == 0:
|
|
|
+ url = "http://api.tjyourong.com.cn/jeecg-boot/first/delivery/excelCallBack?msg={msg}".format(
|
|
|
+ msg='success')
|
|
|
+ requests.request("GET", url, headers=headers, data=payload)
|
|
|
+ else:
|
|
|
+ url = "http://api.tjyourong.com.cn/jeecg-boot/first/delivery/excelCallBack?msg={msg}".format(
|
|
|
+ msg='error')
|
|
|
+ requests.request("GET", url, headers=headers, data=payload)
|
|
|
else:
|
|
|
url = "http://api.tjyourong.com.cn/jeecg-boot/first/delivery/excelCallBack?msg={msg}".format(msg='error')
|
|
|
requests.request("GET", url, headers=headers, data=payload)
|