提取实现类,只需要实现方法即可完成

This commit is contained in:
王涛 committed 2023-06-06 16:50:52 +08:00
1 parent 6062a75b02
commit 88e5c8fb9c
3 files changed
+7 -4

No files matched your search

@@ -54,7 +54,9 @@ public class WxMsgHandle {
return null;
}, WxMsgType.私聊信息);
add(chatMsg -> {
wxSmgServer.文件助手(chatMsg);
if (FILEHELPER.equals(chatMsg.getFromUser())) {
wxSmgServer.文件助手(chatMsg);
}
return 1;
}, WxMsgType.收到转账之后或者文件助手等信息);
add(chatMsg -> {
@@ -37,9 +37,7 @@ public class WxSmgServerImpl implements com.example.wxhk.server.WxSmgServer {
@Override
public void 文件助手(PrivateChatMsg chatMsg) {
if (FILEHELPER.equals(chatMsg.getFromUser())) {
log.info("文件助手:{},", chatMsg.getContent());
}
}
@Override