|  | @@ -215,7 +215,7 @@ public class WxPayServiceImpl extends PayService implements OrderPayService {
 | 
	
		
			
				|  |  |      private ResultMap mp(ProductPayParamBO product) {
 | 
	
		
			
				|  |  |          //redirect_uri 需要在微信支付端添加认证网址
 | 
	
		
			
				|  |  |          totalFee = WxPayUtil.subZeroAndDot(this.totalFee);
 | 
	
		
			
				|  |  | -        String redirectUri = serverUrl + "weixinMobile/dopay?outTradeNo=" + product.getOutTradeNo() + "&totalFee=" + totalFee;
 | 
	
		
			
				|  |  | +        String redirectUri = serverUrl + "/api/sdk/weixinMobile/dopay?outTradeNo=" + product.getOutTradeNo() + "&totalFee=" + totalFee;
 | 
	
		
			
				|  |  |          //也可以通过state传递参数 redirect_uri 后面加参数未经过验证
 | 
	
		
			
				|  |  |          String result = SnsAPI.connectOauth2Authorize(config.getAppId(), redirectUri, true, null);
 | 
	
		
			
				|  |  |          return ResultMap.ok(result);
 | 
	
	
		
			
				|  | @@ -298,7 +298,8 @@ public class WxPayServiceImpl extends PayService implements OrderPayService {
 | 
	
		
			
				|  |  |          URL payUrl = new URL(url);
 | 
	
		
			
				|  |  |          URLConnection con = payUrl.openConnection();
 | 
	
		
			
				|  |  |          // 加referer防盗链,必须是你申请的支付白名单
 | 
	
		
			
				|  |  | -        con.setRequestProperty("Referer", "https://test.game.hzshengmel.com");
 | 
	
		
			
				|  |  | +//        con.setRequestProperty("Referer", "https://test.game.hzshengmel.com");
 | 
	
		
			
				|  |  | +        con.setRequestProperty("Referer", serverUrl);
 | 
	
		
			
				|  |  |          BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(), StandardCharsets.UTF_8));
 | 
	
		
			
				|  |  |          String result = "";
 | 
	
		
			
				|  |  |          String realLineStr = null;
 |