mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-08 05:27:59 +00:00
feat 消息通知的一些字段修正, 预留自动订单分账字段
This commit is contained in:
@@ -24,6 +24,9 @@ public class AggregatePayInfo {
|
||||
@Schema(description = "是否分账")
|
||||
private Boolean allocation;
|
||||
|
||||
@Schema(description = "自动分账")
|
||||
private Boolean autoAllocation;
|
||||
|
||||
/** 支付金额 */
|
||||
@Schema(description = "支付金额")
|
||||
private Integer amount;
|
||||
|
@@ -23,6 +23,9 @@ public class AggregateSimplePayParam {
|
||||
@Schema(description = "是否分账")
|
||||
private Boolean allocation;
|
||||
|
||||
@Schema(description = "自动分账")
|
||||
private Boolean autoAllocation;
|
||||
|
||||
@Schema(description = "标题")
|
||||
@NotNull
|
||||
private String title;
|
||||
|
@@ -26,6 +26,7 @@ public class CashierSimplePayParam {
|
||||
@NotNull(message = "分账是否启用必输")
|
||||
private Boolean allocation;
|
||||
|
||||
|
||||
@Schema(description = "标题")
|
||||
@NotNull(message = "标题不能为空")
|
||||
private String title;
|
||||
|
@@ -160,8 +160,8 @@ public class AggregateService {
|
||||
.orElse("127.0.0.1");
|
||||
simplePayParam.setClientIp(ip);
|
||||
// 异步回调地址
|
||||
simplePayParam.setNotNotify(true);
|
||||
// 同步回调地址 无效
|
||||
simplePayParam.setNotifyUrl(StrUtil.format("{}/result/success", daxPayDemoProperties.getFrontH5Url()));
|
||||
// 同步回调地址
|
||||
simplePayParam.setReturnUrl(StrUtil.format("{}/result/success", daxPayDemoProperties.getFrontH5Url()));
|
||||
|
||||
DaxPayResult<PayModel> execute = DaxPayKit.execute(simplePayParam);
|
||||
@@ -189,7 +189,7 @@ public class AggregateService {
|
||||
.orElse("127.0.0.1");
|
||||
payParam.setClientIp(ip);
|
||||
// 异步回调地址
|
||||
payParam.setNotNotify(true);
|
||||
payParam.setNotNotify(false);
|
||||
// 支付成功同步回调地址
|
||||
payParam.setReturnUrl(StrUtil.format("{}/result/success", daxPayDemoProperties.getFrontH5Url()));
|
||||
// 中途退出 目前经测试不生效
|
||||
|
Reference in New Issue
Block a user