From 7cb03187a94546bb6ec2c895b331743c8c72fce9 Mon Sep 17 00:00:00 2001 From: yumo Date: Sun, 22 Oct 2023 22:16:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=BB=E9=A2=98=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/common.php | 3 +-- app/index/controller/Index.php | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/index/common.php b/app/index/common.php index b5bf5fd..88d72cb 100644 --- a/app/index/common.php +++ b/app/index/common.php @@ -937,14 +937,13 @@ function GetTopTypenameen($id = false) */ function is_active_nav($currCid = false, $cid = false) { - if (request()->action() == 'search') { + if (in_array(request()->action(),['search','tag','about']) ) { return false; } //首页 if (!$currCid && !$cid) { return true; } - //一般在首页中,要比对的栏目id会为false if ($cid == false) { return false; diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index 44b384c..4d3eda1 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -16,7 +16,6 @@ use app\Request; use think\db\exception\DataNotFoundException; use think\db\exception\DbException; use think\db\exception\ModelNotFoundException; -use think\facade\Filesystem; use think\facade\Log; /**