瀏覽代碼

up-查开启的类目

liugc 1 年之前
父節點
當前提交
fc33d1dbe4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/api/lists/GoodsCategoryLists.php

+ 1 - 1
app/api/lists/GoodsCategoryLists.php

@@ -39,7 +39,7 @@ class GoodsCategoryLists extends BaseApiDataLists implements ListsSearchInterfac
      */
      */
     public function lists(): array
     public function lists(): array
     {
     {
-        $lists = GoodsCategory::where($this->searchWhere)
+        $lists = GoodsCategory::where($this->searchWhere)->where('status',1)
             ->field(['id', 'pid' ,'picture', 'name'])
             ->field(['id', 'pid' ,'picture', 'name'])
             ->order(['weigh' => 'desc'])
             ->order(['weigh' => 'desc'])
             ->select()
             ->select()