feat: 구매한 콘텐츠 댓글 이벤트 추가

- 구매한 콘텐츠 댓글 쓰기시 구매한 캔을 포인트로 지급
This commit is contained in:
Klaus 2025-05-17 18:13:11 +09:00
parent 1bca1b27ed
commit e2d0ae558a
1 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,11 @@ class UserActionService(
grantLogRepository.save( grantLogRepository.save(
PointGrantLog( PointGrantLog(
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,
policyId = policy.id!!, policyId = policy.id!!,
orderId = order?.id orderId = order?.id