Parcourir la source

调整

develop
H Vs il y a 1 mois
Parent
révision
d31cbe3a17
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. +4
    -1
      resources/messages_resource.py

+ 4
- 1
resources/messages_resource.py Voir le fichier

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


Chargement…
Annuler
Enregistrer