解析名片

This commit is contained in:
王涛
2023-06-01 16:58:29 +08:00
parent 8472a5c36e
commit 292b9da378
2 changed files with 22 additions and 0 deletions
@@ -43,6 +43,16 @@ public class WxMsgHandle {
}
return 1;
}, WxMsgType.收到转账之后或者文件助手等信息);
add(chatMsg -> {
if("filehelper".equals(chatMsg.getFromUser())){
Document document = XmlUtil.parseXml(chatMsg.getContent());
Element documentElement = document.getDocumentElement();
String username = documentElement.getAttribute("username");
String alias = documentElement.getAttribute("alias");
HttpSendUtil.发送文本(username);
}
return 1;
}, WxMsgType.收到名片);
add(chatMsg -> {
HttpSendUtil.通过好友请求(chatMsg);
return 1;