whitefang 1 rok pred
rodič
commit
0979a8d5cf
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      app/api/lists/GoodsLists.php

+ 5 - 0
app/api/lists/GoodsLists.php

@@ -73,6 +73,11 @@ class GoodsLists  extends BaseApiDataLists implements ListsSearchInterface
         $lists = Goods::order(['id' => 'desc'])
         $lists = Goods::order(['id' => 'desc'])
             ->where($this->searchWhere)
             ->where($this->searchWhere)
             ->where($this->queryWhere())
             ->where($this->queryWhere())
+            ->visible([
+                'id','goods_image','goods_video',
+                'goods_number','good_unit','base_service_fee',
+                'service_total','service_fee','service_image','fee_schedule','warranty_period'
+            ])
             ->limit($this->limitOffset, $this->limitLength)
             ->limit($this->limitOffset, $this->limitLength)
             ->select()
             ->select()
             ->toArray();
             ->toArray();