feat : coupon

This commit is contained in:
2025-03-21 09:26:50 +08:00
parent 99a22b26d1
commit 636fe765ef

View File

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