From 8ae8e66a3aee7179dda20036f6a293fa130f380c Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Wed, 29 Oct 2025 15:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/application/chukebao/controller/AiChatController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/application/chukebao/controller/AiChatController.php b/Server/application/chukebao/controller/AiChatController.php index 5583d583..4090d578 100644 --- a/Server/application/chukebao/controller/AiChatController.php +++ b/Server/application/chukebao/controller/AiChatController.php @@ -128,8 +128,8 @@ class AiChatController extends BaseController return ResponseHelper::error('该好友有新的AI对话请求正在处理中,当前请求已被取消'); } $chatId = $this->createAiChat($setting, $friendSettings, $msgData); - - if (!$chatId) { + + if (empty($chatId)) { $this->clearRequestCache(); return ResponseHelper::error('创建对话失败'); }