From 62a447d89331aee1feae7724c7616aa1bb2cfe79 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 16 十月 2024 14:28:37 +0800
Subject: [PATCH] 将CMQ替换为rabbitmq

---
 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..c5cbea8 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 wxGZAppId,String wxGZAppsecret) {
+		String appId = wxGZAppId;
+		String appSecret = wxGZAppsecret;
+		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