From 1fd8f53e875c485b2048a3b12554eb34a487d41d Mon Sep 17 00:00:00 2001 From: net909 Date: Fri, 14 Aug 2026 15:55:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8E=86=E5=8F=B2=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/Index.php b/app/controller/Index.php index aeadaaa..7fdcd1a 100644 --- a/app/controller/Index.php +++ b/app/controller/Index.php @@ -108,7 +108,7 @@ class Index extends Base $list = []; $history = cookie('tools'); - if(strlen($history)>0){ + if(!empty($history)){ $history = array_reverse(array_unique(explode(',',$history))); $tool = Db::name('plugin')->cache('plugins', self::CACHE_TIME)->field('id,title,alias,keyword,request_count,category_id,level')->where('enable', 1)->order('weight','desc')->select(); $newtool = [];