From 4d2bb35808488d898ef1ab2519692127d27c23e4 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 29 Oct 2024 14:33:33 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=8C=80?= =?UTF-8?q?=EC=97=AC=20=EA=B0=80=EA=B2=A9=20-=20=EC=86=8C=EC=9E=A5?= =?UTF-8?q?=EA=B0=80=EA=B2=A9=EC=9D=98=2060%=EC=97=90=EC=84=9C=2070%=20?= =?UTF-8?q?=ED=91=9C=EA=B8=B0=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Content/Detail/ContentDetailView.swift | 2 +- .../Content/Detail/ContentOrderConfirmDialogView.swift | 4 ++-- SodaLive/Sources/Content/Detail/ContentOrderDialogView.swift | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SodaLive/Sources/Content/Detail/ContentDetailView.swift b/SodaLive/Sources/Content/Detail/ContentDetailView.swift index a359844..2928c06 100644 --- a/SodaLive/Sources/Content/Detail/ContentDetailView.swift +++ b/SodaLive/Sources/Content/Detail/ContentDetailView.swift @@ -239,7 +239,7 @@ struct ContentDetailView: View { orderType: orderType, contentId: audioContent.contentId, title: audioContent.title, - can: !audioContent.isOnlyRental && orderType == .RENTAL ? Int(ceil(Double(audioContent.price) * 0.6)) : audioContent.price + can: !audioContent.isOnlyRental && orderType == .RENTAL ? Int(ceil(Double(audioContent.price) * 0.7)) : audioContent.price ) ) } else { diff --git a/SodaLive/Sources/Content/Detail/ContentOrderConfirmDialogView.swift b/SodaLive/Sources/Content/Detail/ContentOrderConfirmDialogView.swift index 59296be..1be221d 100644 --- a/SodaLive/Sources/Content/Detail/ContentOrderConfirmDialogView.swift +++ b/SodaLive/Sources/Content/Detail/ContentOrderConfirmDialogView.swift @@ -115,7 +115,7 @@ struct ContentOrderConfirmDialogView: View { .frame(width: 16.7, height: 16.7) if orderType == .RENTAL { - Text("\(isOnlyRental ? audioContent.price : Int(ceil(Double(audioContent.price) * 0.6)))") + Text("\(isOnlyRental ? audioContent.price : Int(ceil(Double(audioContent.price) * 0.7)))") .font(.custom(Font.bold.rawValue, size: 13.3)) .foregroundColor(Color.grayee) } else { @@ -125,7 +125,7 @@ struct ContentOrderConfirmDialogView: View { } } else { if orderType == .RENTAL { - Text("\(isOnlyRental ? audioContent.price * 110 : Int(ceil(Double(audioContent.price) * 0.6)) * 110)원") + Text("\(isOnlyRental ? audioContent.price * 110 : Int(ceil(Double(audioContent.price) * 0.7)) * 110)원") .font(.custom(Font.bold.rawValue, size: 13.3)) .foregroundColor(Color.grayee) } else { diff --git a/SodaLive/Sources/Content/Detail/ContentOrderDialogView.swift b/SodaLive/Sources/Content/Detail/ContentOrderDialogView.swift index 503f0a6..6673d3c 100644 --- a/SodaLive/Sources/Content/Detail/ContentOrderDialogView.swift +++ b/SodaLive/Sources/Content/Detail/ContentOrderDialogView.swift @@ -47,11 +47,11 @@ struct ContentOrderDialogView: View { } if UserDefaults.int(forKey: .userId) == 17958 { - Text(isOnlyRental ? "\(price * 110)" : "\(Int(ceil(Double(price) * 0.6)) * 110)") + Text(isOnlyRental ? "\(price * 110)" : "\(Int(ceil(Double(price) * 0.7)) * 110)") .font(.custom(Font.bold.rawValue, size: 13.3)) .foregroundColor(Color.grayee) } else { - Text(isOnlyRental ? "\(price)" : "\(Int(ceil(Double(price) * 0.6)))") + Text(isOnlyRental ? "\(price)" : "\(Int(ceil(Double(price) * 0.7)))") .font(.custom(Font.bold.rawValue, size: 13.3)) .foregroundColor(Color.grayee) }