From 9a0bd9b2b0e22f5362d08afc90b1c4b7973bda7e Mon Sep 17 00:00:00 2001 From: augushong Date: Sat, 4 Oct 2025 10:51:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common.php | 2 +- app/model/Nav.php | 4 ++-- view/admin/nav/create.html | 4 ++-- view/admin/nav/edit.html | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/common.php b/app/common.php index 033d665..93129af 100644 --- a/app/common.php +++ b/app/common.php @@ -321,7 +321,7 @@ function show_time_ago($timestamp) function list_post_platform() { - $list = Nav::where('type', 12)->order('sort asc')->cache(30)->select(); + $list = Nav::where('type', 12)->order('sort asc')->where('status',1)->cache(30)->select(); foreach ($list as $item) { $desc = $item->desc; diff --git a/app/model/Nav.php b/app/model/Nav.php index 6f831fc..8c15850 100644 --- a/app/model/Nav.php +++ b/app/model/Nav.php @@ -25,8 +25,8 @@ class Nav extends Base ]; public static $statusName = [ - 0 => '不显示', - 1 => '显示', + 0 => '禁用', + 1 => '启用', ]; // diff --git a/view/admin/nav/create.html b/view/admin/nav/create.html index b42ac05..53b8399 100644 --- a/view/admin/nav/create.html +++ b/view/admin/nav/create.html @@ -117,8 +117,8 @@
状态
- - + +
diff --git a/view/admin/nav/edit.html b/view/admin/nav/edit.html index 6d3a748..100e831 100644 --- a/view/admin/nav/edit.html +++ b/view/admin/nav/edit.html @@ -118,8 +118,8 @@
状态
- - + +