|
@@ -39,7 +39,6 @@ class UserCouponService extends CrudService {
|
|
|
const canGet = this.ctx.minus(coupon.num, 1) < 0;
|
|
|
if (canGet) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '您手慢了,没抢到');
|
|
|
const res = await this.checkCouponCanGet(coupon);
|
|
|
- console.log(res);
|
|
|
if (!res.result) return res;
|
|
|
const customer = _.get(this.ctx, 'user._id');
|
|
|
if (!customer) throw new BusinessError(ErrorCode.NOT_LOGIN, '未找到用户信息');
|