Przeglądaj źródła

服务产品接口

whitefang 1 rok temu
rodzic
commit
0979a8d5cf
1 zmienionych plików z 5 dodań i 0 usunięć
  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'])
             ->where($this->searchWhere)
             ->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)
             ->select()
             ->toArray();