Compare commits
No commits in common. "e0d64c31c7cc2bccb4bc9b7a82a0091c208d568d" and "8c1b95dc978c9c194349bc72d7946bf9bbe53fc2" have entirely different histories.
e0d64c31c7
...
8c1b95dc97
|
@ -453,6 +453,10 @@ class AudioContentService(
|
||||||
val notificationUserIds = explorerQueryRepository.getNotificationUserIds(creatorId)
|
val notificationUserIds = explorerQueryRepository.getNotificationUserIds(creatorId)
|
||||||
val isFollowing = notificationUserIds.contains(member.id)
|
val isFollowing = notificationUserIds.contains(member.id)
|
||||||
|
|
||||||
|
// 차단된 사용자 체크
|
||||||
|
val isBlocked = blockMemberRepository.isBlocked(blockedMemberId = member.id!!, memberId = creatorId)
|
||||||
|
if (isBlocked) throw SodaException("${creator.nickname}님의 요청으로 콘텐츠 접근이 제한됩니다.")
|
||||||
|
|
||||||
// 구매 여부 확인
|
// 구매 여부 확인
|
||||||
val isExistsBundleAudioContent = bundleAudioContentList
|
val isExistsBundleAudioContent = bundleAudioContentList
|
||||||
.map { orderRepository.isExistOrdered(memberId = member.id!!, contentId = it.id!!) }
|
.map { orderRepository.isExistOrdered(memberId = member.id!!, contentId = it.id!!) }
|
||||||
|
@ -464,11 +468,6 @@ class AudioContentService(
|
||||||
)
|
)
|
||||||
|
|
||||||
val existOrdered = isExistsBundleAudioContent || isExistsAudioContent
|
val existOrdered = isExistsBundleAudioContent || isExistsAudioContent
|
||||||
|
|
||||||
// 차단된 사용자 체크
|
|
||||||
val isBlocked = blockMemberRepository.isBlocked(blockedMemberId = member.id!!, memberId = creatorId)
|
|
||||||
if (isBlocked && !existOrdered) throw SodaException("${creator.nickname}님의 요청으로 콘텐츠 접근이 제한됩니다.")
|
|
||||||
|
|
||||||
val orderSequence = if (existOrdered) {
|
val orderSequence = if (existOrdered) {
|
||||||
limitedEditionOrderRepository.getOrderSequence(
|
limitedEditionOrderRepository.getOrderSequence(
|
||||||
contentId = audioContent.id!!,
|
contentId = audioContent.id!!,
|
||||||
|
|
Loading…
Reference in New Issue