src/modules/market/service/coupon/info.ts
@@ -56,7 +56,7 @@ * @param couponId * @param userId */ async receive(couponId: number, userId: number) { async receive(couponId: number, userId: string) { // 检查优惠券 await this.check(couponId); // 检查用户是否已领取 @@ -79,7 +79,7 @@ * @param userId * @param order */ async checkAndUse(couponId: number, userId: number, order: OrderInfoEntity) { async checkAndUse(couponId: number, userId: string, order: OrderInfoEntity) { // 判断优惠券 const couponInfo = await this.check(couponId); // 判断用户