update 支付时获取对应的支付配置

This commit is contained in:
2023-08-17 11:55:14 +08:00
parent 85d49e3be8
commit ae5f0d8faf
8 changed files with 42 additions and 15 deletions

View File

@@ -54,7 +54,7 @@ public class PayOrderDTO {
/**
* 微信小程序appId
*/
private String appId;
private String wechatAppId;
@Override
public String toString() {

View File

@@ -22,7 +22,10 @@ public class WeixinPayDTO extends BaseMemberDTO{
*/
private String attach;
private String appId;
/**
* 微信小程序appId
*/
private String wechatAppId;
@Override
public String toString() {

View File

@@ -2779,7 +2779,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
}
// 获取支付配置
AbstractAdapayConfig config = AdapayConfigFactory.getConfig(dto.getAppId());
AbstractAdapayConfig config = AdapayConfigFactory.getConfig(dto.getWechatAppId());
if (config == null) {
throw new BusinessException(ReturnCodeEnum.CODE_ADAPAY_CONFIG_IS_NULL_ERROR);
}