代码提交

This commit is contained in:
wong
2025-10-29 15:31:43 +08:00
parent da8bcb04c9
commit f684c4cb3f

View File

@@ -109,8 +109,8 @@ class AiChatController extends BaseController
return ResponseHelper::error('该好友有新的AI对话请求正在处理中当前请求已被取消');
}
$conversationId = $this->ensureConversation($friendSettings, $setting, $params);
if (!$conversationId) {
if (empty($conversationId)) {
$this->clearRequestCache();
return ResponseHelper::error('创建会话失败');
}
@@ -374,7 +374,6 @@ class AiChatController extends BaseController
$friendSettings->conversationId = $conversationId;
$friendSettings->conversationTime = time();
$friendSettings->save();
return $conversationId;
}