From 4632d82dbd624feab5a1090a6485a7ae8110fc89 Mon Sep 17 00:00:00 2001 From: H Vs Date: Thu, 27 Feb 2025 11:42:13 +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 --- resources/login_resources.py | 3 +++ wechat/gewe_chat.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/login_resources.py b/resources/login_resources.py index 50ba027..f48f40a 100644 --- a/resources/login_resources.py +++ b/resources/login_resources.py @@ -76,6 +76,9 @@ class GetLoginWxQRCodeResource(Resource): response=jsonify({'code': 501, 'message': msg}) response.status_code = 501 return response + + if app_id=='': + app_id=qr_code.get('appId') gewe_chat.wxchat.qrCallback(uuid,base64_string) hash_key = f"__AI_OPS_WX__:LOGININFO:{tel}" diff --git a/wechat/gewe_chat.py b/wechat/gewe_chat.py index 71820a1..c9383bd 100644 --- a/wechat/gewe_chat.py +++ b/wechat/gewe_chat.py @@ -54,8 +54,8 @@ class GeWeChatCom: } response = requests.post(url=api_url, headers=headers, data=json.dumps(data)) - #response_data = response.json() - # print(response_data) + response_data = response.json() + print(response_data) # return response_data.get('data') response_object = response.json() return response_object.get('ret',None),response_object.get('msg',None),response_object.get('data',None)