File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/java/com/github/binarywang/demo/wx/mp/config Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 16
16
import static me .chanjar .weixin .common .api .WxConsts .EventType ;
17
17
import static me .chanjar .weixin .common .api .WxConsts .EventType .SUBSCRIBE ;
18
18
import static me .chanjar .weixin .common .api .WxConsts .EventType .UNSUBSCRIBE ;
19
- import static me .chanjar .weixin .common .api .WxConsts .MenuButtonType .CLICK ;
20
- import static me .chanjar .weixin .common .api .WxConsts .MenuButtonType .VIEW ;
21
19
import static me .chanjar .weixin .common .api .WxConsts .XmlMsgType ;
22
20
import static me .chanjar .weixin .common .api .WxConsts .XmlMsgType .EVENT ;
23
21
import static me .chanjar .weixin .mp .constant .WxMpEventConstants .CustomerService .*;
@@ -84,10 +82,10 @@ public WxMpMessageRouter messageRouter(WxMpService wxMpService) {
84
82
newRouter .rule ().async (false ).msgType (EVENT ).event (POI_CHECK_NOTIFY ).handler (this .storeCheckNotifyHandler ).end ();
85
83
86
84
// 自定义菜单事件
87
- newRouter .rule ().async (false ).msgType (EVENT ).event (CLICK ).handler (this .menuHandler ).end ();
85
+ newRouter .rule ().async (false ).msgType (EVENT ).event (EventType . CLICK ).handler (this .menuHandler ).end ();
88
86
89
87
// 点击菜单连接事件
90
- newRouter .rule ().async (false ).msgType (EVENT ).event (VIEW ).handler (this .nullHandler ).end ();
88
+ newRouter .rule ().async (false ).msgType (EVENT ).event (EventType . VIEW ).handler (this .nullHandler ).end ();
91
89
92
90
// 关注事件
93
91
newRouter .rule ().async (false ).msgType (EVENT ).event (SUBSCRIBE ).handler (this .subscribeHandler ).end ();
You can’t perform that action at this time.
0 commit comments