Skip to content

Commit 50fe464

Browse files
committed
🐛 修复代码
1 parent d89c5a2 commit 50fe464

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/github/binarywang/demo/wx/mp/handler/MenuHandler.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import java.util.Map;
1010

11-
import static me.chanjar.weixin.common.api.WxConsts.MenuButtonType;
11+
import static me.chanjar.weixin.common.api.WxConsts.EventType;
1212

1313
/**
1414
* @author Binary Wang(https://github.com/binarywang)
@@ -20,11 +20,10 @@ public class MenuHandler extends AbstractHandler {
2020
public WxMpXmlOutMessage handle(WxMpXmlMessage wxMessage,
2121
Map<String, Object> context, WxMpService weixinService,
2222
WxSessionManager sessionManager) {
23-
2423
String msg = String.format("type:%s, event:%s, key:%s",
2524
wxMessage.getMsgType(), wxMessage.getEvent(),
2625
wxMessage.getEventKey());
27-
if (MenuButtonType.VIEW.equals(wxMessage.getEvent())) {
26+
if (EventType.VIEW.equals(wxMessage.getEvent())) {
2827
return null;
2928
}
3029

0 commit comments

Comments
 (0)