|
|
@@ -100,7 +100,11 @@ public class WeixinMPController {
|
|
|
@ResponseBody
|
|
|
public R<?> createMenu() {
|
|
|
try {
|
|
|
- String menuJson = "{\"button\":[{\"type\":\"view\",\"name\":\"停车减免\",\"url\":\"https://cloud.yeswash.cn/parking.html\"},{\"type\":\"view\",\"name\":\"商家入口\",\"url\":\"https://cloud.yeswash.cn/h5#/\"}]}";
|
|
|
+ String menuJson = "{\"button\":["
|
|
|
+ + "{\"type\":\"view\",\"name\":\"停车减免\",\"url\":\"https://cloud.yeswash.cn/parking.html\"},"
|
|
|
+ + "{\"type\":\"miniprogram\",\"name\":\"去洗车\",\"appid\":\"wxe466e6b630cc47ae\",\"pagepath\":\"pages/index/index\",\"url\":\"https://cloud.yeswash.cn\"},"
|
|
|
+ + "{\"type\":\"view\",\"name\":\"商家入口\",\"url\":\"https://cloud.yeswash.cn/h5#/\"}"
|
|
|
+ + "]}";
|
|
|
log.info("创建菜单: {}", menuJson);
|
|
|
String result = wxMpService.getMenuService().menuCreate(menuJson);
|
|
|
log.info("菜单创建结果: {}", result);
|