mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-04 11:37:37 +00:00
ref 参数修改+联调接口
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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("未开启分账配置");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ public class UnionPayService {
|
||||
throw new PayFailureException("云闪付支付金额超限");
|
||||
}
|
||||
// 分账
|
||||
if (payParam.getAllocation()) {
|
||||
if (Objects.equals(payParam.getAllocation(),true)) {
|
||||
throw new PayFailureException("云闪付不支持分账");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
// 读取接口配置
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
/** 原因 */
|
||||
|
||||
@@ -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:
|
||||
# 网关地址
|
||||
|
||||
Reference in New Issue
Block a user