From ca402fd786131b62d2e84eefa339bbf9bf8b1c48 Mon Sep 17 00:00:00 2001 From: H Vs Date: Wed, 19 Feb 2025 17:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wechat/biz.py | 3 +++ wechat/gewe_chat.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wechat/biz.py b/wechat/biz.py index 3b3ad3f..c8f9b69 100644 --- a/wechat/biz.py +++ b/wechat/biz.py @@ -341,6 +341,9 @@ def login_or_reconnect(wxchat:gewe_chat.GeWeChatCom, token_id, app_id, region_id cleaned_login_info = {k: (v if v is not None else '') for k, v in login_info.items()} redis_helper.redis_helper.set_hash(hash_key, cleaned_login_info) return login_info + else: + logger.info(f"登录检查中: {ret}-{msg}-{res}") + time.sleep(5) logger.error(f"登录失败,二维码生成 {max_retries} 次") diff --git a/wechat/gewe_chat.py b/wechat/gewe_chat.py index b3984b2..594f572 100644 --- a/wechat/gewe_chat.py +++ b/wechat/gewe_chat.py @@ -49,7 +49,7 @@ class GeWeChatCom: } response = requests.post(url=api_url, headers=headers, data=json.dumps(data)) - response_data = response.json() + #response_data = response.json() # print(response_data) # return response_data.get('data') response_object = response.json()