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()