6
0
Fork 0

修改根据当前订单查询用户可用优惠券

release
vine_liutk 2021-12-14 11:01:09 +08:00
parent 9f7867c6b8
commit e6894cc423
1 changed files with 1 additions and 2 deletions

View File

@ -47,8 +47,7 @@ class CouponService
{
return UserCoupon::with('ranges')->where([
'user_id'=>$user->id,
'status'=>0,
])->where('use_start_at', '<=', now())->where('use_end_at', '>=', now())->get();
])->unuse()->get();
}
/**