2
0
mirror of https://gitee.com/hotlcc/wechat4j.git synced 2025-06-07 19:14:08 +08:00

更新 README.md

This commit is contained in:
Allen 2018-08-17 22:28:42 +08:00
parent 990f1ada42
commit 87d0eb0615

View File

@ -53,7 +53,7 @@ wechat.addReceivedMsgHandler(new ReceivedMsgHandler() {
UserInfo contact = wechat.getContactByUserName(false, msg.getFromUserName()); UserInfo contact = wechat.getContactByUserName(false, msg.getFromUserName());
String name = StringUtil.isEmpty(contact.getRemarkName()) ? contact.getNickName() : contact.getRemarkName(); String name = StringUtil.isEmpty(contact.getRemarkName()) ? contact.getNickName() : contact.getRemarkName();
System.out.println(name + ": " + msg.getContent()); System.out.println(name + ": " + msg.getContent());
} }
}); });
``` ```