|
@@ -215,7 +215,7 @@ public class WxPayServiceImpl extends PayService implements OrderPayService {
|
|
|
private ResultMap mp(ProductPayParamBO product) {
|
|
|
|
|
|
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;
|
|
|
|
|
|
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();
|
|
|
|
|
|
- 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;
|