feat : coupon
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user