huangyifan 1 жил өмнө
parent
commit
2a43131a23

+ 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):