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