浏览代码

Merge branch 'yifan' of ASJ_ADS/sync_amz_data into master

yifan_huang96 1 年之前
父节点
当前提交
c5028ba4e5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      sync_amz_data/public/sp_api_client.py

+ 2 - 2
sync_amz_data/public/sp_api_client.py

@@ -1023,12 +1023,12 @@ class SpApiRequest:
             print(e)
             try:
                 print('first time to try...')
-                time.sleep(10)
+                time.sleep(5)
                 SpApiRequest.data_judge(refresh_token,sp_api, data_type, seller_id, auth_conn,days=days,**a_kw)
             except Exception as e:
                 print(e)
                 print('twice time to try...')
-                time.sleep(20)
+                time.sleep(15)
                 SpApiRequest.data_judge(refresh_token, sp_api, data_type, seller_id, auth_conn, days=days, **a_kw)
     @staticmethod
     def data_judge(refresh_token,sp_api,data_type,seller_id,auth_conn,days=-1,**kwargs):