rollback(chat): 채팅을 보낼 때 userName 보내던 내용 제거
This commit is contained in:
@@ -672,7 +672,7 @@ class ChatRoomService(
|
||||
)
|
||||
|
||||
// 6) 외부 API 호출 (최대 3회 재시도)
|
||||
val characterReply = callExternalApiForChatSendWithRetry(userId, member.nickname, characterUUID, message, sessionId)
|
||||
val characterReply = callExternalApiForChatSendWithRetry(userId, characterUUID, message, sessionId)
|
||||
|
||||
// 6) 내 메시지 저장
|
||||
val myMsgEntity = ChatMessage(
|
||||
@@ -827,7 +827,6 @@ class ChatRoomService(
|
||||
|
||||
private fun callExternalApiForChatSendWithRetry(
|
||||
userId: String,
|
||||
username: String,
|
||||
characterUUID: String,
|
||||
message: String,
|
||||
sessionId: String
|
||||
@@ -837,7 +836,7 @@ class ChatRoomService(
|
||||
while (attempt < maxAttempts) {
|
||||
attempt++
|
||||
try {
|
||||
return callExternalApiForChatSend(userId, username, characterUUID, message, sessionId)
|
||||
return callExternalApiForChatSend(userId, characterUUID, message, sessionId)
|
||||
} catch (e: Exception) {
|
||||
log.warn("[chat] 외부 채팅 전송 실패 attempt={}, error={}", attempt, e.message)
|
||||
}
|
||||
@@ -848,7 +847,6 @@ class ChatRoomService(
|
||||
|
||||
private fun callExternalApiForChatSend(
|
||||
userId: String,
|
||||
username: String,
|
||||
characterUUID: String,
|
||||
message: String,
|
||||
sessionId: String
|
||||
@@ -865,7 +863,6 @@ class ChatRoomService(
|
||||
|
||||
val requestBody = mapOf(
|
||||
"userId" to userId,
|
||||
"userName" to username,
|
||||
"characterId" to characterUUID,
|
||||
"message" to message,
|
||||
"sessionId" to sessionId
|
||||
|
||||
Reference in New Issue
Block a user