Enford 5 éve
szülő
commit
08c752e977

+ 3 - 2
src/main/java/com/jeeplus/modules/wexintheorder/web/SimpleOAuth2Controller.java

@@ -1,5 +1,6 @@
 package com.jeeplus.modules.wexintheorder.web;
 
+import com.jeeplus.common.config.Global;
 import com.jeeplus.modules.wexinpackage.access.entity.AccessToken;
 import com.jeeplus.modules.wexinpackage.access.util.access.WeChatParamsUtil;
 import org.springframework.stereotype.Controller;
@@ -27,8 +28,8 @@ public class SimpleOAuth2Controller {
         String requestUrl = request.getServerName();
         String contextPath = request.getContextPath();
         logger.info("domain name: " + requestUrl + " project name: " + contextPath);
-        //拼接微信回调地址Global.getConfig("")
-        String backUrl ="http://total2.viphk.ngrok.org/weXin/theOrder/orderFrom";
+        //拼接微信回调地址
+        String backUrl = Global.getConfig("backUrl");
         String redirect_uri = "";
         try {
             redirect_uri = URLEncoder.encode(backUrl, "utf-8");

+ 7 - 4
src/main/resources/jeeplus.properties

@@ -6,11 +6,11 @@
 jdbc.type=mysql
 jdbc.driver=com.mysql.jdbc.Driver
 db.name=ruihuaoa-activity-data
-jdbc.url=jdbc:mysql://192.168.2.4:3306/total_process_master?useUnicode=true&characterEncoding=utf-8
-#jdbc.url=jdbc:mysql://127.0.0.1:3306/total_process_master?useUnicode=true&characterEncoding=utf-8
+#jdbc.url=jdbc:mysql://192.168.2.4:3306/total_process_master?useUnicode=true&characterEncoding=utf-8
+jdbc.url=jdbc:mysql://127.0.0.1:3306/total_process_master?useUnicode=true&characterEncoding=utf-8
 jdbc.username=root
-#jdbc.password=123456
-jdbc.password=root
+jdbc.password=123456
+#jdbc.password=root
 
 #pool settings
 jdbc.pool.init=20
@@ -249,3 +249,6 @@ bos_buck_name=newxgccpm
 
 serverDomain=http://192.168.2.4:18080/total_process
 
+#订餐回调
+backUrl = http://total2.viphk.ngrok.org/weXin/theOrder/orderFrom
+