浏览代码

调整

develop
H Vs 1 个月前
父节点
当前提交
d31cbe3a17
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      resources/messages_resource.py

+ 4
- 1
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)


正在加载...
取消
保存