temp: 캔 가격 타입 Int -> Double로 변경

This commit is contained in:
2025-10-01 16:07:34 +09:00
parent 863c285049
commit 78ff13a654
9 changed files with 11 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ data class Can(
var title: String,
var can: Int,
var rewardCan: Int,
var price: Int,
var price: Double,
@Enumerated(value = EnumType.STRING)
var status: CanStatus
) : BaseEntity()

View File

@@ -7,5 +7,5 @@ data class CanResponse @QueryProjection constructor(
val title: String,
val can: Int,
val rewardCan: Int,
val price: Int
val price: Double
)

View File

@@ -21,7 +21,7 @@ data class VerifyResult(
val method: String,
val pg: String,
val status: Int,
val price: Int
val price: Double
)
data class AppleChargeRequest(

View File

@@ -66,7 +66,7 @@ class ChargeTempService(
VerifyResult::class.java
)
if (verifyResult.status == 1 && verifyResult.price == charge.payment!!.price.toInt()) {
if (verifyResult.status == 1 && verifyResult.price == charge.payment!!.price) {
charge.payment?.receiptId = verifyResult.receiptId
charge.payment?.method = verifyResult.method
charge.payment?.status = PaymentStatus.COMPLETE
@@ -74,7 +74,7 @@ class ChargeTempService(
} else {
throw SodaException("결제정보에 오류가 있습니다.")
}
} catch (e: Exception) {
} catch (_: Exception) {
throw SodaException("결제정보에 오류가 있습니다.")
}
} else {