From 7fbd13f7e327f96782d660fa1c479abf1bd18d66 Mon Sep 17 00:00:00 2001 From: Alone <675061370@qq.com> Date: Wed, 6 Nov 2024 09:21:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E5=89=8D=E7=BC=80bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Chatbot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/Chatbot.php b/app/api/controller/Chatbot.php index bcad957..46601b2 100644 --- a/app/api/controller/Chatbot.php +++ b/app/api/controller/Chatbot.php @@ -63,7 +63,7 @@ class Chatbot extends QfShop Cache::set($msg['userid'], 1, 604800); } // 检查用户消息内容中开头第一个字是否包含“搜”关键字 - if (strncmp($message, '搜', 1) === 0 || strncmp($message, '全网搜', 1) === 0) { + if (strpos($message, '搜') === 0 || strpos($message, '全网搜') === 0) { if(strncmp($message, '全网搜', 1) === 0){ $list = [];