diff --git a/resources/messages_resource.py b/resources/messages_resource.py index db3062c..eca9086 100644 --- a/resources/messages_resource.py +++ b/resources/messages_resource.py @@ -169,7 +169,7 @@ def handle_name_card(token_id,app_id, wxid,msg_data,from_wxid, to_wxid): nickname=utils.get_login_info_by_wxid(wxid).get('nickName') add_contact_content=f'您好,我是{nickname}' #gewe_chat.wxchat.add_contacts(token_id,app_id,scene,Models.OperationType.ADD_FRIEND,v3,v4,add_contact_content) - gewe_chat.wxchat.add_contacts(token_id,app_id,scene,2,v3,v4,add_contact_content) + gewe_chat.wxchat.add_contacts(token_id,app_id,scene,Models.OperationType.ADD_FRIEND.value,v3,v4,add_contact_content) except ET.ParseError as e: logger.error(f"XML解析错误: {e}")