1
0
Quellcode durchsuchen

更改联系我们的菜单位置和内容

frankeleyn vor 2 Jahren
Ursprung
Commit
fbc21b1115

+ 2 - 2
src/main/java/com/ematou/wxservice/mp/handler/WeChatClickEventMessageHandler.java

@@ -61,10 +61,10 @@ public class WeChatClickEventMessageHandler implements WeChatMessageHandler {
 
         String content = "【前海电商(深圳)供应链集团有限公司】\n" +
                 "\n" +
-                "我们在这里!↓↓↓mo-[嘿哈]\n" +
+                "我们在这里!↓↓↓[嘿哈]\n" +
                 "地址:深圳市前海深港合作区南山街道桂湾片区二单元前海卓越金融中心(一期)7号楼1705\n" +
                 "\n" +
-                "或者直接拨打电话 0755-21628282mo-[握手]\n" +
+                "或者直接拨打电话 0755-21628282,18124754870[握手]\n" +
                 "我们热情的等着您~";
         return WeChatMpXmlOutMessage.TEXT().content(content).toUser(weChatMessage.getFromUser()).fromUser(weChatMessage.getToUser()).build();
     }

+ 3 - 3
src/main/java/com/ematou/wxservice/mp/menu/MenuButtonManager.java

@@ -55,14 +55,14 @@ public class MenuButtonManager {
         ViewButton showNews = new ViewButton("展会快讯", WeChatConstant.EventType.VIEW.toLowerCase(), "http://mp.weixin.qq.com/mp/homepage?__biz=MzIwMTI2MTg1MA==&hid=4&sn=89a19c85a4742d13eb3e4ceab2179ba8&scene=18#wechat_redirect");
         ViewButton industryReport = new ViewButton("行业周报", WeChatConstant.EventType.VIEW.toLowerCase(), "http://mp.weixin.qq.com/mp/homepage?__biz=MzIwMTI2MTg1MA==&hid=1&sn=f7becf0ef818d4a57a4ca4acfde72613&scene=18#wechat_redirect");
         ClickButton policySupport = new ClickButton("政策支持", WeChatConstant.EventType.CLICK.toLowerCase(), WeChatConstant.CustomEventKey.POLICY_SUPPORT);
+        ClickButton callCompanyBtn = new ClickButton("联系我们", WeChatConstant.EventType.CLICK.toLowerCase(), WeChatConstant.CustomEventKey.CALL_COMPANY);
         MenuButton companyMenuButton = new MenuButton("公司信息");
-        companyMenuButton.setSub_button(Arrays.asList(companyState, companyInfo, showNews, policySupport, industryReport));
+        companyMenuButton.setSub_button(Arrays.asList(companyState, companyInfo, showNews, policySupport, industryReport, callCompanyBtn));
 
         ViewButton supplier = new ViewButton("供应商拓展", WeChatConstant.EventType.VIEW.toLowerCase(), "http://mp.weixin.qq.com/mp/homepage?__biz=MzIwMTI2MTg1MA==&hid=2&sn=cd51f61ada3218168fe3af6c3318b6ca&scene=18#wechat_redirect");
         ViewButton showGoods = new ViewButton("货源展示区", WeChatConstant.EventType.VIEW.toLowerCase(), "https://mp.weixin.qq.com/bizmall/mallshelf?id=&t=mall/list&biz=MzIwMTI2MTg1MA==&shelf_id=5&showwxpaytitle=1#wechat_redirect");
-        ClickButton callCompanyBtn = new ClickButton("联系我们", WeChatConstant.EventType.CLICK.toLowerCase(), WeChatConstant.CustomEventKey.CALL_COMPANY);
         MenuButton goodsMenuButton = new MenuButton("货源展示");
-        goodsMenuButton.setSub_button(Arrays.asList(supplier, showGoods, callCompanyBtn));
+        goodsMenuButton.setSub_button(Arrays.asList(supplier, showGoods));
 
         HashMap<String, List<Button>> map = new HashMap<>();
         map.put("button", Arrays.asList(companyMenuButton, goodsMenuButton, takeParcelMenuButton));