Ver código fonte

优惠券显示

whitefang 1 ano atrás
pai
commit
f3786d1a37
1 arquivos alterados com 1 adições e 0 exclusões
  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'])