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 @@