|
@@ -1023,12 +1023,12 @@ class SpApiRequest:
|
|
print(e)
|
|
print(e)
|
|
try:
|
|
try:
|
|
print('first time to 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)
|
|
SpApiRequest.data_judge(refresh_token,sp_api, data_type, seller_id, auth_conn,days=days,**a_kw)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
print(e)
|
|
print(e)
|
|
print('twice time to try...')
|
|
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)
|
|
SpApiRequest.data_judge(refresh_token, sp_api, data_type, seller_id, auth_conn, days=days, **a_kw)
|
|
@staticmethod
|
|
@staticmethod
|
|
def data_judge(refresh_token,sp_api,data_type,seller_id,auth_conn,days=-1,**kwargs):
|
|
def data_judge(refresh_token,sp_api,data_type,seller_id,auth_conn,days=-1,**kwargs):
|