Преглед на файлове

refactor(payment): 移除支付宝退款策略中的支付配置检查

- 注释掉了门店支付配置参数验证逻辑
- 保留了支付单存在性检查功能
- 简化了退款金额验证流程
fcw преди 5 дни
родител
ревизия
94de929fc9

+ 4 - 4
alien-store/src/main/java/shop/alien/store/strategy/merchantPayment/impl/MerchantAlipayPaymentStrategyImpl.java

@@ -351,10 +351,10 @@ public class MerchantAlipayPaymentStrategyImpl implements MerchantPaymentStrateg
         if (StringUtils.isBlank(refundAmount) || new BigDecimal(refundAmount).compareTo(BigDecimal.ZERO) <= 0) {
             return R.fail("退款金额必须大于0");
         }
-        StorePaymentConfig config = storePaymentConfigService.getByStoreId(storeId);
-        if (config == null) {
-            return R.fail("该门店未配置支付参数");
-        }
+//        StorePaymentConfig config = storePaymentConfigService.getByStoreId(storeId);
+//        if (config == null) {
+//            return R.fail("该门店未配置支付参数");
+//        }
         MerchantPaymentOrder paymentOrder = merchantPaymentOrderService.getByOutTradeNo(outTradeNo);
         if (paymentOrder == null) {
             return R.fail("支付单不存在");