|
@@ -132,6 +132,7 @@ class UserCouponLogic extends BaseLogic
|
|
|
$coupon_ids = CouponCategory::where('goods_category_id',$params['goods_category_id'])->column('coupon_id');
|
|
$coupon_ids = CouponCategory::where('goods_category_id',$params['goods_category_id'])->column('coupon_id');
|
|
|
|
|
|
|
|
$data = CouponRules::where('remaining_count','>',0)
|
|
$data = CouponRules::where('remaining_count','>',0)
|
|
|
|
|
+ ->where('coupon_type',1)
|
|
|
->whereIn('id',$coupon_ids)
|
|
->whereIn('id',$coupon_ids)
|
|
|
->where('voucher_status',1)
|
|
->where('voucher_status',1)
|
|
|
->append(['discount_ratio_text'])
|
|
->append(['discount_ratio_text'])
|