作者 dengyuting

fix

... ... @@ -2,6 +2,7 @@ name: 实际订单新增
base_url: ${ENV(base_manager_url)}
variables:
shipmentsId: '实发订单发货单号${get_nowtime()}'
orderId: '实发订单号${get_nowtime()}'
partnerID: 1047
commissionProportion: 5
orderNum1: 100
... ... @@ -18,7 +19,7 @@ request:
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
orderId: '实发订单号${get_nowtime()}'
orderId: $orderId
shipmentsId: $shipmentsId
partnerID: $partnerID
buyer: '客户名称${get_stringcode(5)}'
... ...
... ... @@ -56,7 +56,7 @@ def sendinfo():
# '\n 执行时间:' + str(r[4]) + \
# 's\n TOTAL:' + str(r[1]) + '\n SUCCESS:' + str(r[2]) + '\n FAIL:' + str(r[3])
url = 'https://oapi.dingtalk.com/robot/send?access_token=78c1856d146224126b471f17a6b060d118c3fcb1e60155ec7e9ec5c45fdc01f6'
url = 'https://oapi.dingtalk.com/robot/send?access_token=157a80f4a09380f1338a182de1e120b42ba2d07cd6b729b288543e4fd3f6d160'
headers = {'Content-Type': 'application/json'}
requests.post(url, json=data, headers=headers)
... ...