|
@@ -503,7 +503,8 @@ def get_zzy_order_task(start, end, account):
|
|
order_list = get_zzy_channel_order(start, end, account, channel)
|
|
order_list = get_zzy_channel_order(start, end, account, channel)
|
|
total_order_list.extend(order_list)
|
|
total_order_list.extend(order_list)
|
|
print(f"{stage} [{start}]~[{end}] 有订单{total_order_list.__len__()}")
|
|
print(f"{stage} [{start}]~[{end}] 有订单{total_order_list.__len__()}")
|
|
- if total_order_list > 0:
|
|
|
|
|
|
+
|
|
|
|
+ if len(total_order_list) > 0:
|
|
save_order(total_order_list)
|
|
save_order(total_order_list)
|
|
|
|
|
|
|
|
|
|
@@ -531,7 +532,9 @@ def get_zzy_channel_order(start, end, account, channel):
|
|
params = 'channel_id=' + str(channel_id) + '&' + gte + '&' + lt + '&page=' + str(
|
|
params = 'channel_id=' + str(channel_id) + '&' + gte + '&' + lt + '&page=' + str(
|
|
page) + '&per_page=' + per_page + '&status=' + status + '&key=' + key + '&sign=' + sign
|
|
page) + '&per_page=' + per_page + '&status=' + status + '&key=' + key + '&sign=' + sign
|
|
while True:
|
|
while True:
|
|
|
|
+
|
|
r = requests.get(order_url + params)
|
|
r = requests.get(order_url + params)
|
|
|
|
+
|
|
if r.status_code == 200:
|
|
if r.status_code == 200:
|
|
response_result_json = r.json()
|
|
response_result_json = r.json()
|
|
break
|
|
break
|