소스 검색

调整

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


Loading…
취소
저장