|
|
@@ -172,6 +172,8 @@ class UserCouponLogic extends BaseLogic
|
|
|
$coupon_ids = CouponCategory::where('goods_category_id',$params['goods_category_id'])->whereIn('coupon_id',$coupon_all_ids)->column('coupon_id');
|
|
|
|
|
|
$data = UserCoupon::where('user_id',$params['user_id'])
|
|
|
+ ->where('voucher_count','>',0)
|
|
|
+ ->where('voucher_status',0)
|
|
|
->whereIn('coupon_id',$coupon_ids)
|
|
|
->append(['discount_ratio_text'])
|
|
|
->where('expire_time','>',time())
|