From a1be6075c6b1365a7abc66bf559d6058039248ab Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 19 五月 2021 18:13:29 +0800 Subject: [PATCH] 淘礼金兼容 --- fanli/src/main/java/com/yeshi/fanli/service/impl/config/WXGZServiceImpl.java | 86 +++++++++++++++++++++--------------------- 1 files changed, 43 insertions(+), 43 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/config/WXGZServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/config/WXGZServiceImpl.java index 7837ba0..0d255eb 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/config/WXGZServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/config/WXGZServiceImpl.java @@ -1,43 +1,43 @@ -package com.yeshi.fanli.service.impl.config; - -import org.springframework.stereotype.Service; - -import com.yeshi.fanli.service.inter.config.WXGZService; -import com.yeshi.fanli.util.Constant; -import org.yeshi.utils.wx.WXUtil; - -import net.sf.json.JSONArray; -import net.sf.json.JSONObject; - -@Service -public class WXGZServiceImpl implements WXGZService { - @Override - public void initMenu() { - String appId = Constant.systemCommonConfig.getWxGZAppId(); - String appSecret = Constant.systemCommonConfig.getWxGZAppSecret(); - String accessToken = WXUtil.getAcessToken(appId, appSecret); - JSONObject root = new JSONObject(); - JSONArray items = new JSONArray(); - JSONObject data1 = new JSONObject(); - data1.put("type", "view"); - data1.put("name", "涓嬭浇" + Constant.systemCommonConfig.getProjectChineseName()); - data1.put("url", Constant.wxGZConfig.getAppDownloadLink()); - items.add(data1); - - data1 = new JSONObject(); - data1.put("type", "view"); - data1.put("name", "棰嗗彇浼樻儬鍒�"); - data1.put("url", Constant.wxGZConfig.getH5Url()); - items.add(data1); - - data1 = new JSONObject(); - data1.put("type", "view"); - data1.put("name", "甯姪涓績"); - data1.put("url", Constant.wxGZConfig.getHelpUrl()); - items.add(data1); - - root.put("button", items); - WXUtil.createMenu(accessToken, root); - } - -} +package com.yeshi.fanli.service.impl.config; + +import org.springframework.stereotype.Service; + +import com.yeshi.fanli.service.inter.config.WXGZService; +import com.yeshi.fanli.util.Constant; +import org.yeshi.utils.wx.WXUtil; + +import net.sf.json.JSONArray; +import net.sf.json.JSONObject; + +@Service +public class WXGZServiceImpl implements WXGZService { + @Override + public void initMenu() { + String appId = Constant.systemCommonConfig.getWxGZAppId(); + String appSecret = Constant.systemCommonConfig.getWxGZAppSecret(); + String accessToken = WXUtil.getAcessToken(appId, appSecret); + JSONObject root = new JSONObject(); + JSONArray items = new JSONArray(); + JSONObject data1 = new JSONObject(); + data1.put("type", "view"); + data1.put("name", "涓嬭浇" + Constant.systemCommonConfig.getProjectChineseName()); + data1.put("url", Constant.wxGZConfig.getAppDownloadLink()); + items.add(data1); + + data1 = new JSONObject(); + data1.put("type", "view"); + data1.put("name", "棰嗗彇浼樻儬鍒�"); + data1.put("url", Constant.wxGZConfig.getH5Url()); + items.add(data1); + + data1 = new JSONObject(); + data1.put("type", "view"); + data1.put("name", "甯姪涓績"); + data1.put("url", Constant.wxGZConfig.getHelpUrl()); + items.add(data1); + + root.put("button", items); + WXUtil.createMenu(accessToken, root); + } + +} -- Gitblit v1.8.0