심사용 계정이 아닌 곳에서 가격 * 110으로 표시되는 버그 수정
This commit is contained in:
		| @@ -233,7 +233,7 @@ struct ContentDetailView: View { | ||||
|                                                 orderType: orderType, | ||||
|                                                 contentId: audioContent.contentId, | ||||
|                                                 title: audioContent.title, | ||||
|                                                 can: orderType == .RENTAL ? Int(ceil(Double(audioContent.price) * 0.6)) : audioContent.price | ||||
|                                                 can: !audioContent.isOnlyRental && orderType == .RENTAL ? Int(ceil(Double(audioContent.price) * 0.6)) : audioContent.price | ||||
|                                             ) | ||||
|                                         ) | ||||
|                                 } else { | ||||
|   | ||||
| @@ -46,9 +46,15 @@ struct ContentOrderDialogView: View { | ||||
|                                     .frame(width: 16.7, height: 16.7) | ||||
|                             } | ||||
|                              | ||||
|                             Text(isOnlyRental ? "\(price * 110)" : "\(Int(ceil(Double(price) * 0.6)) * 110)") | ||||
|                                 .font(.custom(Font.bold.rawValue, size: 13.3)) | ||||
|                                 .foregroundColor(Color.grayee) | ||||
|                             if UserDefaults.int(forKey: .userId) == 17958 { | ||||
|                                 Text(isOnlyRental ? "\(price * 110)" : "\(Int(ceil(Double(price) * 0.6)) * 110)") | ||||
|                                     .font(.custom(Font.bold.rawValue, size: 13.3)) | ||||
|                                     .foregroundColor(Color.grayee) | ||||
|                             } else { | ||||
|                                 Text(isOnlyRental ? "\(price)" : "\(Int(ceil(Double(price) * 0.6)))") | ||||
|                                     .font(.custom(Font.bold.rawValue, size: 13.3)) | ||||
|                                     .foregroundColor(Color.grayee) | ||||
|                             } | ||||
|                              | ||||
|                             if UserDefaults.int(forKey: .userId) == 17958 { | ||||
|                                 Text("원") | ||||
| @@ -87,9 +93,15 @@ struct ContentOrderDialogView: View { | ||||
|                                         .frame(width: 16.7, height: 16.7) | ||||
|                                 } | ||||
|                                  | ||||
|                                 Text("\(price * 110)") | ||||
|                                     .font(.custom(Font.bold.rawValue, size: 13.3)) | ||||
|                                     .foregroundColor(Color.grayee) | ||||
|                                 if UserDefaults.int(forKey: .userId) == 17958 { | ||||
|                                     Text("\(price * 110)") | ||||
|                                         .font(.custom(Font.bold.rawValue, size: 13.3)) | ||||
|                                         .foregroundColor(Color.grayee) | ||||
|                                 } else { | ||||
|                                     Text("\(price)") | ||||
|                                         .font(.custom(Font.bold.rawValue, size: 13.3)) | ||||
|                                         .foregroundColor(Color.grayee) | ||||
|                                 } | ||||
|                                  | ||||
|                                 if UserDefaults.int(forKey: .userId) == 17958 { | ||||
|                                     Text("원") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung