refactor(alipay): 将支付宝通道标识从 ALI 修改为 ALIPAY

This commit is contained in:
bootx
2024-12-20 23:20:52 +08:00
parent 9830930717
commit 861f27ff0c
19 changed files with 19 additions and 18 deletions

View File

@@ -77,7 +77,7 @@ public class AliPayConfig implements ToResult<AliPayConfigResult> {
channelConfig.setOutAppId(this.getAliAppId());
channelConfig.setAppId(this.getAppId());
channelConfig.setEnable(this.getEnable());
channelConfig.setChannel(ChannelEnum.ALI.getCode());
channelConfig.setChannel(ChannelEnum.ALIPAY.getCode());
AliPayConfig copy = AliPayConfigConvert.CONVERT.copy(this);
// 清空不需要序列化的字段
copy.setId(null).setAppId(null).setEnable(null).setAliAppId(null).setAppId(null);

View File

@@ -86,7 +86,7 @@ public class AliPayCallbackService {
CallbackLocal callback = PaymentContextLocal.get().getCallbackInfo();
callback.setCallbackData(callbackParam);
// 通道和回调类型
callback.setChannel(ChannelEnum.ALI.getCode());
callback.setChannel(ChannelEnum.ALIPAY.getCode());
String refundFee = callbackParam.get(ResponseParams.REFUND_FEE);
// 如果有退款金额,说明是退款回调
if (StrUtil.isNotBlank(refundFee)){

View File

@@ -119,7 +119,7 @@ public class AliPayConfigService {
*/
public AliPayConfig getAliPayConfig(){
MchAppLocal mchAppInfo = PaymentContextLocal.get().getMchAppInfo();
ChannelConfig channelConfig = channelConfigCacheService.get(mchAppInfo.getAppId(), ChannelEnum.ALI.getCode());
ChannelConfig channelConfig = channelConfigCacheService.get(mchAppInfo.getAppId(), ChannelEnum.ALIPAY.getCode());
return AliPayConfig.convertConfig(channelConfig);
}

View File

@@ -51,7 +51,7 @@ public class AliPayTransferNoticeService {
public String callback(Map<String, String> map) {
CallbackLocal callbackInfo = PaymentContextLocal.get().getCallbackInfo();
callbackInfo.setRawData(JsonUtil.toJsonStr(map))
.setChannel(ChannelEnum.ALI.getCode())
.setChannel(ChannelEnum.ALIPAY.getCode())
.setCallbackType(TradeTypeEnum.TRANSFER);
// 通过 biz_content 获取值

View File

@@ -26,7 +26,7 @@ public class AliAllocationStrategy extends AbsAllocationStrategy {
*/
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}
/**

View File

@@ -32,7 +32,7 @@ public class AliPayAllocReceiverStrategy extends AbsAllocReceiverStrategy {
*/
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}
@Override

View File

@@ -29,7 +29,7 @@ public class AliPayAuthStrategy extends AbsChannelAuthStrategy {
*/
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}
/**

View File

@@ -21,6 +21,6 @@ public class AliPayCashierCodeStrategy extends AbsCashierCodeStrategy {
*/
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}
}

View File

@@ -24,7 +24,7 @@ public class AliPayCheckoutStrategy extends AbsCheckoutStrategy {
*/
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}
/**

View File

@@ -27,7 +27,7 @@ public class AliPayCloseStrategy extends AbsPayCloseStrategy {
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}
/**

View File

@@ -37,7 +37,7 @@ public class AliPayReconcileStrategy extends AbsReconcileStrategy {
*/
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}
/**

View File

@@ -28,7 +28,7 @@ public class AliPayRefundStrategy extends AbsRefundStrategy {
*/
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}

View File

@@ -31,7 +31,7 @@ public class AliPayStrategy extends AbsPayStrategy {
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}
/**

View File

@@ -27,7 +27,7 @@ public class AliPaySyncOrderStrategy extends AbsSyncPayOrderStrategy {
*/
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}
/**

View File

@@ -33,7 +33,7 @@ public class AliPaySyncRefundStrategy extends AbsSyncRefundOrderStrategy {
*/
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}

View File

@@ -29,7 +29,7 @@ public class AliPaySyncTransferStrategy extends AbsSyncTransferOrderStrategy {
*/
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}
/**

View File

@@ -34,7 +34,7 @@ public class AliPayTransferStrategy extends AbsTransferStrategy {
*/
@Override
public String getChannel() {
return ChannelEnum.ALI.getCode();
return ChannelEnum.ALIPAY.getCode();
}
@Override