lrf 2 gadi atpakaļ
vecāks
revīzija
c75a297a47
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;