zoujiajian před 3 roky
rodič
revize
c9d7f5881b

+ 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("该优惠码下单时不可使用");