mirror of
https://gitee.com/hotlcc/wechat4j.git
synced 2025-06-07 19:14:08 +08:00
更新 README.md
This commit is contained in:
parent
990f1ada42
commit
87d0eb0615
@ -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());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user