Jelajahi Sumber

优惠券显示

whitefang 1 tahun lalu
induk
melakukan
f3786d1a37
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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');
             $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'])