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