fix: 구매한 콘텐츠 댓글 이벤트 추가
- 구매한 콘텐츠 댓글 쓰기시 구매한 캔을 포인트로 지급 해야 되는데 설정한 포인트로 지급되는 버그 수정
This commit is contained in:
parent
e2d0ae558a
commit
3079998a5d
|
@ -89,14 +89,25 @@ class UserActionService(
|
||||||
memberPointRepository.save(
|
memberPointRepository.save(
|
||||||
MemberPoint(
|
MemberPoint(
|
||||||
memberId = memberId,
|
memberId = memberId,
|
||||||
point = policy.pointAmount,
|
point = if (actionType == ActionType.ORDER_CONTENT_COMMENT && order != null) {
|
||||||
|
order.can
|
||||||
|
} else {
|
||||||
|
policy.pointAmount
|
||||||
|
},
|
||||||
actionType = actionType,
|
actionType = actionType,
|
||||||
expiresAt = now.plusDays(3)
|
expiresAt = now.plusDays(3)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if (pushTokenList.isNotEmpty()) {
|
if (pushTokenList.isNotEmpty()) {
|
||||||
fcmService.sendPointGranted(pushTokenList, policy.pointAmount)
|
fcmService.sendPointGranted(
|
||||||
|
pushTokenList,
|
||||||
|
if (actionType == ActionType.ORDER_CONTENT_COMMENT && order != null) {
|
||||||
|
order.can
|
||||||
|
} else {
|
||||||
|
policy.pointAmount
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue