优化网页全网搜速度 有提升但不多

This commit is contained in:
Alone
2024-11-05 09:52:59 +08:00
parent 79a17d758e
commit 197692c4eb
3 changed files with 20 additions and 31 deletions
+3 -9
View File
@@ -169,15 +169,9 @@ class Tool extends QfShop
}
Cache::set($keys, 1, 10);
$urlData = array(
'title' => $title,
);
$res = curlHelper(Request::domain()."/api/other/all_search", "POST", $urlData)['body'];
$res = json_decode($res, true);
if($res['code'] === 200){
$list = $res['data']??[];
}
$bController = app(\app\api\controller\Other::class);
$list = $bController->all_search($title);
Cache::delete($keys);
return jok('临时资源获取成功', $list);
}