修复历史记录页面

This commit is contained in:
net909
2026-08-14 15:55:35 +08:00
parent f34a28ecbd
commit 1fd8f53e87
+1 -1
View File
@@ -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 = [];