diff --git a/dev/workflow/TK_Cust/tk_api_1/合并SCRM CONTACT/custom_events_update_feign.py b/dev/workflow/TK_Cust/tk_api_1/合并SCRM CONTACT/custom_events_update_feign.py index d5cad35..e00c748 100644 --- a/dev/workflow/TK_Cust/tk_api_1/合并SCRM CONTACT/custom_events_update_feign.py +++ b/dev/workflow/TK_Cust/tk_api_1/合并SCRM CONTACT/custom_events_update_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth['access_token'] and i < 60: +while 'error' in auth and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api_1/更新scrm CONTACT/update_scrm_contact_feign.py b/dev/workflow/TK_Cust/tk_api_1/更新scrm CONTACT/update_scrm_contact_feign.py index 3f626c1..494dd32 100644 --- a/dev/workflow/TK_Cust/tk_api_1/更新scrm CONTACT/update_scrm_contact_feign.py +++ b/dev/workflow/TK_Cust/tk_api_1/更新scrm CONTACT/update_scrm_contact_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth['access_token'] and i < 60: +while 'error' in auth and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api_1/获取SCRM contact/scrm_contact_feign.py b/dev/workflow/TK_Cust/tk_api_1/获取SCRM contact/scrm_contact_feign.py index 3e52ecc..4c5589d 100644 --- a/dev/workflow/TK_Cust/tk_api_1/获取SCRM contact/scrm_contact_feign.py +++ b/dev/workflow/TK_Cust/tk_api_1/获取SCRM contact/scrm_contact_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth['access_token'] and i < 60: +while 'error' in auth and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1