|
@@ -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;
|