Przeglądaj źródła

优惠券结算

skyline 2 lat temu
rodzic
commit
187d49b307

+ 2 - 2
service/src/main/java/com/kym/service/factory/DiscountStrategyFactory.java

@@ -1,9 +1,9 @@
 package com.kym.service.factory;
 
-import com.kym.common.exception.BusinessException;
 import com.kym.entity.admin.Activity;
 import com.kym.service.miniapp.DiscountService;
 import com.kym.service.miniapp.impl.CouponDiscountHandle;
+import com.kym.service.miniapp.impl.NoDiscountHandle;
 import com.kym.service.miniapp.impl.RechargeRightsDiscountHandle;
 import org.springframework.stereotype.Component;
 
@@ -20,7 +20,7 @@ public class DiscountStrategyFactory {
         } else if (Activity.DISCOUNT_TYPE_服务费折扣权益.equals(discountType)) {
             return new RechargeRightsDiscountHandle();
         } else {
-            throw new BusinessException("未配置相关策略");
+            return new NoDiscountHandle();
         }
     }
 }