From 77222ffddfc729e00e900b4a3433c6506765ff13 Mon Sep 17 00:00:00 2001 From: zjk2017 <2548836866@qq.com> Date: Thu, 22 Aug 2024 22:33:07 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E4=BA=A4=E6=B1=87=E7=82=B9.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 交汇点.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/交汇点.py b/交汇点.py index aa2c44a..bb66a69 100644 --- a/交汇点.py +++ b/交汇点.py @@ -169,7 +169,8 @@ class JHD(): response1.raise_for_status() response_json1 = response1.json() except requests.exceptions.RequestException as e: - print(f'请求focusByColumn接口失败: {e}') + # print(f'请求focusByColumn接口失败: {e}') + print(f'请求focusByColumn接口失败') return url2 = 'https://jhd.xhby.net/interaction/api/v1/interaction/article-extnums/login/addClick' @@ -186,7 +187,8 @@ class JHD(): response2.raise_for_status() response_json2 = response2.json() except requests.exceptions.RequestException as e: - print(f'请求文章click接口失败: {e}') + # print(f'请求文章click接口失败: {e}') + print(f'请求文章click接口失败') return if response_json["code"] == 0 and response_json1["code"] == 400700004 and response_json2["code"] == 0: @@ -473,7 +475,8 @@ class JHD(): response.raise_for_status() # 检查响应状态码是否表示错误 response_json = response.json() except requests.exceptions.RequestException as e: - print(f'请求文章详情失败: {e}') + # print(f'请求文章详情失败: {e}') + print(f'请求文章详情失败') return json_data = { @@ -485,7 +488,8 @@ class JHD(): response1.raise_for_status() response_json1 = response1.json() except requests.exceptions.RequestException as e: - print(f'请求focusByColumn接口失败: {e}') + # print(f'请求focusByColumn接口失败: {e}') + print(f'请求focusByColumn接口失败') return url2 = 'https://jhd.xhby.net/interaction/api/v1/interaction/article-extnums/login/addClick' @@ -502,7 +506,8 @@ class JHD(): response2.raise_for_status() response_json2 = response2.json() except requests.exceptions.RequestException as e: - print(f'请求文章click接口失败: {e}') + # print(f'请求click接口失败: {e}') + print(f'请求click接口失败') return if response_json["code"] == 0 and response_json1["code"] == 400700004 and response_json2["code"] == 0: