代码优化

This commit is contained in:
wong
2025-10-29 15:48:48 +08:00
parent f684c4cb3f
commit 8ae8e66a3a

View File

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