代码提交
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user