From d31cbe3a17fdb2c0d78e7e61d0ecf263fbd3db30 Mon Sep 17 00:00:00 2001 From: H Vs Date: Fri, 7 Mar 2025 11:47:31 +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/messages_resource.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/messages_resource.py b/resources/messages_resource.py index 2fcbef3..d93e0b8 100644 --- a/resources/messages_resource.py +++ b/resources/messages_resource.py @@ -698,7 +698,10 @@ def handle_xml_invite_group(token_id,app_id, wxid,msg_data,from_wxid, to_wxid): ret,msg,data=gewe_chat.wxchat.agree_join_room(token_id,app_id,invite_url) if ret==200: logger.info(f'群聊邀请,同意加入群聊 {msg} {data}') - chatroom_id=data.get('ChatRoomId') + chatroom_id=data.get('chatroomId','') + # if not chatroom_id: + # logger.warning(f'群聊邀请,同意加入群聊失败 {msg} {data}') + # return ret,msg,data=gewe_chat.wxchat.save_contract_list(token_id,app_id,chatroom_id,3) logger.info(f'群聊邀请,保存到通讯录 chatroom_id {chatroom_id} {msg}') gewe_chat.wxchat.update_group_info_to_cache(token_id,app_id,wxid,chatroom_id)