代码优化
This commit is contained in:
@@ -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('创建对话失败');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user