From 29abf21cc67b0d471f962480199d3d4cf67545ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Tue, 27 Jul 2021 14:13:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/product/controller/OpenProduct.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/product/controller/OpenProduct.php b/app/product/controller/OpenProduct.php index 03d1569..92ef270 100644 --- a/app/product/controller/OpenProduct.php +++ b/app/product/controller/OpenProduct.php @@ -16,7 +16,7 @@ class OpenProduct public function getOpenList() { $product = new PoductModel; - $list = $product->getList([], 'Id,Name', 'Sort asc'); + $list = $product->getList(['OnLine' => 1], 'Id,Name', 'Sort asc'); \result($list); }