whitefang 1 год назад
Родитель
Сommit
f3786d1a37
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/api/logic/UserCouponLogic.php

+ 1 - 0
app/api/logic/UserCouponLogic.php

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