|
@@ -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) |
|
|
ret,msg,data=gewe_chat.wxchat.agree_join_room(token_id,app_id,invite_url) |
|
|
if ret==200: |
|
|
if ret==200: |
|
|
logger.info(f'群聊邀请,同意加入群聊 {msg} {data}') |
|
|
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) |
|
|
ret,msg,data=gewe_chat.wxchat.save_contract_list(token_id,app_id,chatroom_id,3) |
|
|
logger.info(f'群聊邀请,保存到通讯录 chatroom_id {chatroom_id} {msg}') |
|
|
logger.info(f'群聊邀请,保存到通讯录 chatroom_id {chatroom_id} {msg}') |
|
|
gewe_chat.wxchat.update_group_info_to_cache(token_id,app_id,wxid,chatroom_id) |
|
|
gewe_chat.wxchat.update_group_info_to_cache(token_id,app_id,wxid,chatroom_id) |
|
|