ref 参数修改+联调接口

This commit is contained in:
bootx
2024-04-25 23:15:24 +08:00
parent ad495b4a08
commit c108859c17
9 changed files with 34 additions and 38 deletions

View File

@@ -23,8 +23,8 @@ public class DaxPayProperties {
/** 前端地址(web) */
private String frontWebUrl;
/** 机器码, 御用控制生成流水号 */
private String machineNo;
/** 机器码, 用于区分不同机器生成流水号 */
private String machineNo = "56";
public void setMachineNo(String machineNo) {
this.machineNo = machineNo;

View File

@@ -62,7 +62,7 @@ public class AliPayService {
throw new PayFailureException("支付宝支付金额超过限额");
}
// 支付参数开启分账, 配置未开启分账
if(payParam.getAllocation() && !Objects.equals(alipayConfig.getAllocation(),true)){
if(Objects.equals(payParam.getAllocation(),true) && !Objects.equals(alipayConfig.getAllocation(),true)){
throw new PayFailureException("未开启分账配置");
}
}

View File

@@ -57,7 +57,7 @@ public class UnionPayService {
throw new PayFailureException("云闪付支付金额超限");
}
// 分账
if (payParam.getAllocation()) {
if (Objects.equals(payParam.getAllocation(),true)) {
throw new PayFailureException("云闪付不支持分账");
}
}

View File

@@ -108,7 +108,7 @@ public class PayAssistService {
PlatformLocal platform = PaymentContextLocal.get()
.getPlatformInfo();
// 异步回调为开启状态
if (!payParam.getNotNotify() && apiInfo.isNotice()) {
if (Objects.equals(payParam.getNotNotify(), true) && apiInfo.isNotice()) {
// 首先读取请求参数
noticeInfo.setNotifyUrl(payParam.getNotifyUrl());
// 读取接口配置

View File

@@ -77,6 +77,7 @@ public class PayService {
return this.repeatPay(payParam,payOrder);
}
} catch (Exception e) {
log.error("支付异常",e);
payResult.setMsg(e.getMessage());
return payResult;
} finally {

View File

@@ -1,6 +1,5 @@
package cn.bootx.platform.daxpay.service.param.order;
import cn.bootx.platform.daxpay.code.PayChannelEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
@@ -19,15 +18,8 @@ public class PayOrderRefundParam {
@Schema(description = "支付订单号")
private String orderNo;
/**
* 支付通道
* @see PayChannelEnum#getCode()
*/
private String channel;
/**
* 退款金额
*/
/** 退款金额 */
@Schema(description = "退款金额")
private Integer amount;
/** 原因 */

View File

@@ -162,6 +162,8 @@ dax-pay:
front-h5-url: http://pay1.bootx.cn/h5/#
# 前端web地址
front-web-url: http://localhost:9000/#
# 机器号码
machine-no: 63
# 演示模块
demo:
# 网关地址