-
Notifications
You must be signed in to change notification settings - Fork 2
[fix/#357] 구매 연필 사용 시 PurchasedPencil에도 반영되도록 fix #361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| break; | ||
|
|
||
| long available = purchasedPencil.getRemainQuantity(); | ||
| long toConsume = Math.min(available, remainingToConsume); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Math.min 을 통해서, 요구하는 부분을 쉽게 나타내시는 거 같아요!! 좋은 코드 같습니다,!!
| } | ||
|
|
||
| private void consumePurchasedPencils(Member buyer, long unpaidPencil) { | ||
| List<PurchasedPencil> purchasedPencils = purchasedPencilUpdater.findByMemberAndRemainQuantityGreaterThanOrderByCreatedAtAsc( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 부분에
DELIVERY_SUCCESS(0), //The app delivered the consumable in-app purchase and it’s working properly.
Purchased_ Pencill 부분에 DELIVERY STATUS 라는 컬럼이 존재하는 데, DELIVERY SUCCESS 인 경우에만 해당 작업이 진행되어야 하므로, 해당 where 절에 추가 되어야 할 듯 합니다.
제가 미리 말씀 드렸어야 하는 데 죄송합니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아닙니다 추가하겠습니다 👍 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 DELIVERY STATUS은 Integer로 저장되는건가요?? 코드상에선 그런 것 같아 여쭤봅니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 DELIVERY STATUS은 Integer로 저장되는건가요?? 코드상에선 그런 것 같아 여쭤봅니다!
넵 맞습니다!! 감사합니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
반영했습니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
머지 하셔도 될 듯 합니다!!
[fix/#357] 구매 연필 사용 시 PurchasedPencil에도 반영되도록 fix
작업내용
구매 연필 사용 시 PurchasedPencil에도 반영되도록 fix
상세설명_ & 캡쳐
기존 코드에 메소드 추가
-구매 연필 사용 시. consumePurchasedPencils 메소드 호출
전체메소드