zoujiajian 3 سال پیش
والد
کامیت
c9d7f5881b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      netflix-web/src/main/java/com/cyksj/web/controller/coupon/CouponFrontController.java

+ 1 - 1
netflix-web/src/main/java/com/cyksj/web/controller/coupon/CouponFrontController.java

@@ -252,7 +252,7 @@ public class CouponFrontController {
 				throw BusinessRuntimeException.getInstance("该优惠码续费时不可使用");
 			}
 		}
-		if (isRenew == null && !isRenew) {
+		if (isRenew == null || !isRenew) {
 			Coupon.UseScope useScope = dto.getUseScope();
 			if (useScope == Coupon.UseScope.renew) {
 				throw BusinessRuntimeException.getInstance("该优惠码下单时不可使用");