案例专家:userId更换成code

This commit is contained in:
liu.zixi
2025-10-11 11:56:37 +08:00
parent 8ae8a650fd
commit bf555b1070

View File

@@ -235,7 +235,7 @@ public class CaseAiChatServiceImpl implements ICaseAiChatService {
if (StringUtils.isEmpty(conversationId)) {
// 新会话,调用创建会话接口
String conversationName = "AI案例咨询-" + LocalDateTime.now().toString();
CaseAiConversations newConversation = createNewConversation(currentUser.getAccountId(), conversationName);
CaseAiConversations newConversation = createNewConversation(currentUser.getCode(), conversationName);
return newConversation.getAiConversationId();
} else {
// 已存在会话,从数据库查询