|  | @@ -1,5 +1,6 @@
 | 
												
													
														
															|  |  package com.jeeplus.modules.wexintheorder.web;
 |  |  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.entity.AccessToken;
 | 
												
													
														
															|  |  import com.jeeplus.modules.wexinpackage.access.util.access.WeChatParamsUtil;
 |  |  import com.jeeplus.modules.wexinpackage.access.util.access.WeChatParamsUtil;
 | 
												
													
														
															|  |  import org.springframework.stereotype.Controller;
 |  |  import org.springframework.stereotype.Controller;
 | 
												
											
												
													
														
															|  | @@ -27,8 +28,8 @@ public class SimpleOAuth2Controller {
 | 
												
													
														
															|  |          String requestUrl = request.getServerName();
 |  |          String requestUrl = request.getServerName();
 | 
												
													
														
															|  |          String contextPath = request.getContextPath();
 |  |          String contextPath = request.getContextPath();
 | 
												
													
														
															|  |          logger.info("domain name: " + requestUrl + " project name: " + contextPath);
 |  |          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 = "";
 |  |          String redirect_uri = "";
 | 
												
													
														
															|  |          try {
 |  |          try {
 | 
												
													
														
															|  |              redirect_uri = URLEncoder.encode(backUrl, "utf-8");
 |  |              redirect_uri = URLEncoder.encode(backUrl, "utf-8");
 |