|
@@ -190,7 +190,7 @@ public class AliPayService extends PayBaseService {
|
|
|
result.put("fromData", body);
|
|
|
//安卓与ios系统时才单独获取app支付地址
|
|
|
if (!product.getDeviceSystem().contains(OsEnum.SYSTEM_ANDROID.getOs()) && !product.getDeviceSystem().contains(OsEnum.SYSTEM_IOS.getOs())) {
|
|
|
- return ResultMap.ok(product.getPayDevice(), result);
|
|
|
+ return ResultMap.ok(product.getPayDevice(), result, product.getOutTradeNo());
|
|
|
}
|
|
|
Matcher matcher = pattern.matcher(body);
|
|
|
//解析短链
|
|
@@ -223,7 +223,7 @@ public class AliPayService extends PayBaseService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- return ResultMap.ok(product.getPayDevice(), result.get("appLink"));
|
|
|
+ return ResultMap.ok(product.getPayDevice(), result.get("appLink"), product.getOutTradeNo());
|
|
|
} catch (Exception e) {
|
|
|
log.error("支付宝h5支付失败,meg : {}", e.getMessage());
|
|
|
return ResultMap.error(ResEnum.FAIL.getMsg());
|
|
@@ -244,7 +244,7 @@ public class AliPayService extends PayBaseService {
|
|
|
.pay(product.getSubject(), product.getOutTradeNo(), product.getTotalFee(), this.returnUrl);
|
|
|
log.info("pc端支付生成,result:{}", response);
|
|
|
if (ResponseChecker.success(response)) {
|
|
|
- return ResultMap.ok(product.getPayDevice(), response.getBody());
|
|
|
+ return ResultMap.ok(product.getPayDevice(), response.getBody(), product.getOutTradeNo());
|
|
|
} else {
|
|
|
return ResultMap.error(ResEnum.FAIL.getMsg());
|
|
|
}
|
|
@@ -266,7 +266,7 @@ public class AliPayService extends PayBaseService {
|
|
|
.App().asyncNotify(notifyUrl)
|
|
|
.pay(product.getSubject(), product.getOutTradeNo(), product.getTotalFee());
|
|
|
if (ResponseChecker.success(response)) {
|
|
|
- return ResultMap.ok(product.getPayDevice(), response.getBody());
|
|
|
+ return ResultMap.ok(product.getPayDevice(), response.getBody(), product.getOutTradeNo());
|
|
|
} else {
|
|
|
return ResultMap.error(ResEnum.FAIL.getMsg());
|
|
|
}
|