diff --git a/app/Service/ServiceTrait/Api/CouponTrait.php b/app/Service/ServiceTrait/Api/CouponTrait.php index bb28337..e10f424 100644 --- a/app/Service/ServiceTrait/Api/CouponTrait.php +++ b/app/Service/ServiceTrait/Api/CouponTrait.php @@ -29,7 +29,7 @@ trait CouponTrait if ($orderInfo->coupon_id <= 0) return; - $couponInfo = $this->userCouponModel->where('coupon_id', $orderInfo->coupon_id)->where('user_id',$orderInfo->user_id)->first(); + $couponInfo = $this->userCouponModel->where('id', $orderInfo->coupon_id)->where('user_id',$orderInfo->user_id)->first(); if (empty($couponInfo)) return;