Pārlūkot izejas kodu

服务产品接口

whitefang 1 gadu atpakaļ
vecāks
revīzija
0979a8d5cf
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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();