lrf před 2 roky
rodič
revize
c75a297a47
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/service/user/userCoupon.js

+ 1 - 1
app/service/user/userCoupon.js

@@ -524,7 +524,7 @@ class UserCouponService extends CrudService {
     if (!couponData) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到优惠券');
     if (couponData.status !== '0') throw new BusinessError(ErrorCode.DATA_INVALID, '该优惠券处于禁用状态');
     let loop = 0;
-    if (_.get(couponData, 'get_limit') === 'no_limit') loop = num;
+    if (_.get(couponData, 'get_limit') === 'nolimit') loop = num;
     else {
       const limit = _.get(couponData, 'get_limit_config.max');
       if (this.ctx.minus(num, limit) > 0) loop = limit;