Skip to content

Commit

Permalink
🐛 修复代码
Browse files Browse the repository at this point in the history
  • Loading branch information
binarywang committed Sep 6, 2019
1 parent d89c5a2 commit 50fe464
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import java.util.Map;

import static me.chanjar.weixin.common.api.WxConsts.MenuButtonType;
import static me.chanjar.weixin.common.api.WxConsts.EventType;

/**
* @author Binary Wang(https://github.com/binarywang)
Expand All @@ -20,11 +20,10 @@ public class MenuHandler extends AbstractHandler {
public WxMpXmlOutMessage handle(WxMpXmlMessage wxMessage,
Map<String, Object> context, WxMpService weixinService,
WxSessionManager sessionManager) {

String msg = String.format("type:%s, event:%s, key:%s",
wxMessage.getMsgType(), wxMessage.getEvent(),
wxMessage.getEventKey());
if (MenuButtonType.VIEW.equals(wxMessage.getEvent())) {
if (EventType.VIEW.equals(wxMessage.getEvent())) {
return null;
}

Expand Down

0 comments on commit 50fe464

Please sign in to comment.