Przeglądaj źródła

商品详情问题

whitefang 1 rok temu
rodzic
commit
193a99dfaf
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/api/logic/GoodsLogic.php

+ 1 - 1
app/api/logic/GoodsLogic.php

@@ -25,7 +25,7 @@ class GoodsLogic extends BaseLogic
      */
     public static function detail($id,$type){
         if($type == 'category'){
-            $goods = Goods::where(['goods_category_id'=>$id,'user_id'=>0])->visible([
+            $goods = Goods::where(['goods_category_id'=>$id,'user_id'=>0,'is_agent'=>0])->visible([
                 'id','goods_image','goods_name','goods_banners','good_unit','sell_num','base_service_fee',
                 'service_total','service_fee','service_image','fee_schedule','warranty_period','goods_payment_type','goods_category_id'
             ])->select()->toArray();