Skip to content

Commit a4daf56

Browse files
committed
自定义菜单加入对小程序的支持 #170
1 parent 60c82e9 commit a4daf56

File tree

1 file changed

+9
-4
lines changed
  • weixin-java-common/src/main/java/me/chanjar/weixin/common/api

1 file changed

+9
-4
lines changed

weixin-java-common/src/main/java/me/chanjar/weixin/common/api/WxConsts.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,23 @@ public class WxConsts {
136136
public static final String MEDIA_VIDEO = "video";
137137
public static final String MEDIA_THUMB = "thumb";
138138
public static final String MEDIA_FILE = "file";
139-
/**
140-
* 点击推事件
141-
*/
142-
public static final String BUTTON_CLICK = "click";
143139

144140

145141
///////////////////////
146142
// 自定义菜单的按钮类型
147143
///////////////////////
144+
/**
145+
* 点击推事件
146+
*/
147+
public static final String BUTTON_CLICK = "click";
148148
/**
149149
* 跳转URL
150150
*/
151151
public static final String BUTTON_VIEW = "view";
152+
/**
153+
* 跳转到小程序
154+
*/
155+
public static final String BUTTON_MINIPROGRAM = "miniprogram";
152156
/**
153157
* 扫码推事件
154158
*/
@@ -181,6 +185,7 @@ public class WxConsts {
181185
* 跳转图文消息URL
182186
*/
183187
public static final String BUTTON_VIEW_LIMITED = "view_limited";
188+
184189
/**
185190
* 不弹出授权页面,直接跳转,只能获取用户openid
186191
*/

0 commit comments

Comments
 (0)