|
@@ -580,8 +580,19 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
if product_Info.cycle == 0 {
|
|
if product_Info.cycle == 0 {
|
|
tipsString = NSLocalizedString("%.2f/Permanent Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
tipsString = NSLocalizedString("%.2f/Permanent Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
}
|
|
}
|
|
-
|
|
|
|
- let fullString = String(format: tipsString, insting ?? 0)
|
|
|
|
|
|
+
|
|
|
|
+ var fullString = String(format: tipsString, insting ?? 0)
|
|
|
|
+
|
|
|
|
+ let originalStr = showOrgPriceString()
|
|
|
|
+ let discountStr = showOrgShowPriceString()
|
|
|
|
+ if originalStr == discountStr {
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ if discountStr.isEmpty == false && discountStr != "0" {
|
|
|
|
+ let data = Float(discountStr) ?? 0
|
|
|
|
+ fullString = String(format: tipsString, data)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
prmiumLabel.stringValue = String(format: "%@ %@", abbreviation, fullString)
|
|
prmiumLabel.stringValue = String(format: "%@ %@", abbreviation, fullString)
|
|
original1 = Float(showOrgPriceString()) ?? 0
|
|
original1 = Float(showOrgPriceString()) ?? 0
|