fix(explorer): getCreatorProfile 라이브 응답의 coverImageUrl을 크리에이터 프로필 이미지로 교체
- ExplorerQueryRepository의 LiveRoomResponse 매핑에서 커버 이미지 → 프로필 이미지로 변경 - 프로필 이미지 URL 규칙 적용: null/빈→기본 이미지, https로 시작 시 원본 유지, 상대 경로는 CloudFront 접두 - 응답 스키마/필드명은 호환성 유지를 위해 그대로 유지
This commit is contained in:
@@ -431,10 +431,15 @@ class ExplorerQueryRepository(
|
|||||||
price = it.price,
|
price = it.price,
|
||||||
channelName = it.channelName,
|
channelName = it.channelName,
|
||||||
managerNickname = it.member!!.nickname,
|
managerNickname = it.member!!.nickname,
|
||||||
coverImageUrl = if (it.coverImage!!.startsWith("https://")) {
|
// 기존: 라이브 방 커버 이미지를 반환
|
||||||
it.coverImage!!
|
// 변경: 크리에이터(방 매니저) 프로필 이미지를 반환
|
||||||
} else {
|
coverImageUrl = run {
|
||||||
"$cloudFrontHost/${it.coverImage!!}"
|
val profileImage = it.member!!.profileImage
|
||||||
|
when {
|
||||||
|
profileImage.isNullOrBlank() -> "$cloudFrontHost/profile/default-profile.png"
|
||||||
|
profileImage.startsWith("https://") -> profileImage
|
||||||
|
else -> "$cloudFrontHost/$profileImage"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
isReservation = reservations.isNotEmpty(),
|
isReservation = reservations.isNotEmpty(),
|
||||||
isActive = it.isActive,
|
isActive = it.isActive,
|
||||||
|
|||||||
Reference in New Issue
Block a user