diff --git a/dev/workflow/TK_Cust/tk_api/合并SCRM CONTACT/custom_events_update_feign.py b/dev/workflow/TK_Cust/tk_api/合并SCRM CONTACT/custom_events_update_feign.py index 9c5a91d..d5cad35 100644 --- a/dev/workflow/TK_Cust/tk_api/合并SCRM CONTACT/custom_events_update_feign.py +++ b/dev/workflow/TK_Cust/tk_api/合并SCRM CONTACT/custom_events_update_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/更新scrm CONTACT/update_scrm_contact_feign.py b/dev/workflow/TK_Cust/tk_api/更新scrm CONTACT/update_scrm_contact_feign.py index bea5edc..3f626c1 100644 --- a/dev/workflow/TK_Cust/tk_api/更新scrm CONTACT/update_scrm_contact_feign.py +++ b/dev/workflow/TK_Cust/tk_api/更新scrm CONTACT/update_scrm_contact_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取SCRM contact/scrm_contact_feign.py b/dev/workflow/TK_Cust/tk_api/获取SCRM contact/scrm_contact_feign.py index e5a784c..3e52ecc 100644 --- a/dev/workflow/TK_Cust/tk_api/获取SCRM contact/scrm_contact_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取SCRM contact/scrm_contact_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取线索事件/customer_events_feign.py b/dev/workflow/TK_Cust/tk_api/获取线索事件/customer_events_feign.py index 4c42417..34050b2 100644 --- a/dev/workflow/TK_Cust/tk_api/获取线索事件/customer_events_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取线索事件/customer_events_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取线索事件_activity_submit/custom_events_activity_submit_feign.py b/dev/workflow/TK_Cust/tk_api/获取线索事件_activity_submit/custom_events_activity_submit_feign.py index f506eca..67d8ff0 100644 --- a/dev/workflow/TK_Cust/tk_api/获取线索事件_activity_submit/custom_events_activity_submit_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取线索事件_activity_submit/custom_events_activity_submit_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取线索事件_c_minipro_page_view/custom_events_c_minipro_page_view_feign.py b/dev/workflow/TK_Cust/tk_api/获取线索事件_c_minipro_page_view/custom_events_c_minipro_page_view_feign.py index 74500f5..bbc5bbe 100644 --- a/dev/workflow/TK_Cust/tk_api/获取线索事件_c_minipro_page_view/custom_events_c_minipro_page_view_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取线索事件_c_minipro_page_view/custom_events_c_minipro_page_view_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取线索事件_click_link_in_page/custom_events_click_link_in_page_feign.py b/dev/workflow/TK_Cust/tk_api/获取线索事件_click_link_in_page/custom_events_click_link_in_page_feign.py index 0e3178f..b089005 100644 --- a/dev/workflow/TK_Cust/tk_api/获取线索事件_click_link_in_page/custom_events_click_link_in_page_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取线索事件_click_link_in_page/custom_events_click_link_in_page_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取线索事件_cp_employee_tools_huiju_event_add/custom_events_cp_employee_tools_huiju_event_add_feign.py b/dev/workflow/TK_Cust/tk_api/获取线索事件_cp_employee_tools_huiju_event_add/custom_events_cp_employee_tools_huiju_event_add_feign.py index 0225e9c..3567ab8 100644 --- a/dev/workflow/TK_Cust/tk_api/获取线索事件_cp_employee_tools_huiju_event_add/custom_events_cp_employee_tools_huiju_event_add_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取线索事件_cp_employee_tools_huiju_event_add/custom_events_cp_employee_tools_huiju_event_add_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取线索事件_open_app/custom_events_open_app_feign.py b/dev/workflow/TK_Cust/tk_api/获取线索事件_open_app/custom_events_open_app_feign.py index e96207b..91d074a 100644 --- a/dev/workflow/TK_Cust/tk_api/获取线索事件_open_app/custom_events_open_app_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取线索事件_open_app/custom_events_open_app_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取线索事件_open_content_page/custom_events_open_content_page_feign.py b/dev/workflow/TK_Cust/tk_api/获取线索事件_open_content_page/custom_events_open_content_page_feign.py index 3a542d6..5b88694 100644 --- a/dev/workflow/TK_Cust/tk_api/获取线索事件_open_content_page/custom_events_open_content_page_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取线索事件_open_content_page/custom_events_open_content_page_feign.py @@ -34,7 +34,7 @@ def get_token(url): return auth=json.loads(authRequest.text) return auth - + print('开始加载数据:custom_events_open_content_page:获取线索事件_open_content_page') authUrl='https://api.huiju.cool/v2/oauth2/token?app_id=cl037b184ebccd97c&secret=deaa83fdd8d385eec0d1d04d34282c4ec8c33b60&grant_type=client_credentials' @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取线索事件_open_page/custom_events_open_page_feign.py b/dev/workflow/TK_Cust/tk_api/获取线索事件_open_page/custom_events_open_page_feign.py index 5facd15..30b2e5c 100644 --- a/dev/workflow/TK_Cust/tk_api/获取线索事件_open_page/custom_events_open_page_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取线索事件_open_page/custom_events_open_page_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取线索事件_submit_form/custom_events_submit_form_feign.py b/dev/workflow/TK_Cust/tk_api/获取线索事件_submit_form/custom_events_submit_form_feign.py index 411c3fc..5485a61 100644 --- a/dev/workflow/TK_Cust/tk_api/获取线索事件_submit_form/custom_events_submit_form_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取线索事件_submit_form/custom_events_submit_form_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取线索事件_subscribe/custom_events_subscribe_feign.py b/dev/workflow/TK_Cust/tk_api/获取线索事件_subscribe/custom_events_subscribe_feign.py index 0f013b3..646d936 100644 --- a/dev/workflow/TK_Cust/tk_api/获取线索事件_subscribe/custom_events_subscribe_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取线索事件_subscribe/custom_events_subscribe_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取线索事件_wechat_scan/custom_events_wechat_scan_feign.py b/dev/workflow/TK_Cust/tk_api/获取线索事件_wechat_scan/custom_events_wechat_scan_feign.py index 65e014f..4f8c458 100644 --- a/dev/workflow/TK_Cust/tk_api/获取线索事件_wechat_scan/custom_events_wechat_scan_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取线索事件_wechat_scan/custom_events_wechat_scan_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1 diff --git a/dev/workflow/TK_Cust/tk_api/获取线索事件元数据/customer_event_meta_feign.py b/dev/workflow/TK_Cust/tk_api/获取线索事件元数据/customer_event_meta_feign.py index 06c6949..38ee490 100644 --- a/dev/workflow/TK_Cust/tk_api/获取线索事件元数据/customer_event_meta_feign.py +++ b/dev/workflow/TK_Cust/tk_api/获取线索事件元数据/customer_event_meta_feign.py @@ -44,7 +44,7 @@ print('开始请求令牌。') auth = get_token(authUrl) #循环判断auth是否为空,若为空,等待30s后重新请求 i = 0 -while not auth and i < 60: +while not auth['access_token'] and i < 60: time.sleep(60) auth = get_token(authUrl) i = i + 1