feat 消息通知的一些字段修正, 预留自动订单分账字段

This commit is contained in:
DaxPay
2024-05-08 20:09:37 +08:00
parent 58ee11d560
commit 35724c40b7
29 changed files with 93 additions and 57 deletions

View File

@@ -24,6 +24,9 @@ public class AggregatePayInfo {
@Schema(description = "是否分账")
private Boolean allocation;
@Schema(description = "自动分账")
private Boolean autoAllocation;
/** 支付金额 */
@Schema(description = "支付金额")
private Integer amount;

View File

@@ -23,6 +23,9 @@ public class AggregateSimplePayParam {
@Schema(description = "是否分账")
private Boolean allocation;
@Schema(description = "自动分账")
private Boolean autoAllocation;
@Schema(description = "标题")
@NotNull
private String title;

View File

@@ -26,6 +26,7 @@ public class CashierSimplePayParam {
@NotNull(message = "分账是否启用必输")
private Boolean allocation;
@Schema(description = "标题")
@NotNull(message = "标题不能为空")
private String title;

View File

@@ -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()));
// 中途退出 目前经测试不生效