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('创建对话失败'); }