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

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 -11
View File
@@ -122,18 +122,10 @@ class Chatbot extends QfShop
private function Qsearch($newString)
{
$list = [];
$urlData = array(
'title' => $newString,
);
$res = curlHelper(Request::domain()."/api/other/all_search", "POST", $urlData)['body'];
$res = json_decode($res, true);
$bController = app(\app\api\controller\Other::class);
$result = $bController->all_search($newString);
if($res['code'] === 200){
$list = $res['data']??[];
}
return $list;
return $result;
}
// 解密消息