|
|
@@ -1865,7 +1865,10 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService {
|
|
|
payConfig.setSubAppId(org.apache.commons.lang3.StringUtils.trimToNull(null));
|
|
|
payConfig.setSubMchId(org.apache.commons.lang3.StringUtils.trimToNull(null));
|
|
|
payConfig.setKeyPath(null);
|
|
|
- payConfig.setNotifyUrl(fsPayConfig.getNotifyUrlScrm());
|
|
|
+ // 路径取配制 去掉/store
|
|
|
+ String path = merchantAppConfig.getCallbackUrl().replace("/store", "");
|
|
|
+ payConfig.setNotifyUrl(path);
|
|
|
+// payConfig.setNotifyUrl(fsPayConfig.getNotifyUrlScrm());
|
|
|
wxPayService.setConfig(payConfig);
|
|
|
WxPayUnifiedOrderRequest orderRequest = new WxPayUnifiedOrderRequest();
|
|
|
orderRequest.setOpenid(openId);//公众号支付提供用户openid
|
|
|
@@ -1878,7 +1881,7 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService {
|
|
|
//调用统一下单接口,获取"预支付交易会话标识"
|
|
|
try {
|
|
|
WxPayMpOrderResult orderResult = wxPayService.createOrder(orderRequest);
|
|
|
- return R.ok().put("data", orderResult).put("type", "wx").put("isPay", 0);
|
|
|
+ return R.ok().put("result", orderResult).put("type", "wx").put("isPay", 0);
|
|
|
} catch (WxPayException e) {
|
|
|
e.printStackTrace();
|
|
|
throw new CustomException("支付失败" + e.getMessage());
|