|
@@ -553,8 +553,17 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
|
let insting = Float(showSinglePriceString())
|
|
|
listPrice = Float(String(format: "%.2f", Float((insting ?? 0) * Float(pdfCount)))) ?? 0 //单价*购买个数
|
|
|
|
|
|
- if _product_code == "advanced-annual-subscription-trail" ||
|
|
|
- _product_code == "advanced-annual-subscription-blackFive" ||
|
|
|
+ if _product_code == KMAdvancedAnnualSubscriptionTrailCodeKey_DMG {
|
|
|
+ var tipsString = NSLocalizedString("7-day free trial, then auto-renew at %@/year", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ let value = String(format: "%@ %.2f", abbreviation, insting ?? 0)
|
|
|
+ let fullString = String(format: tipsString, value)
|
|
|
+
|
|
|
+ prmiumLabel.stringValue = fullString
|
|
|
+ original1 = Float(showOrgPriceString()) ?? 0
|
|
|
+ discount1 = Float(showOrgShowPriceString()) ?? 0
|
|
|
+ paySum = discount1
|
|
|
+ discount = listPrice - paySum
|
|
|
+ } else if _product_code == "advanced-annual-subscription-blackFive" ||
|
|
|
_product_code == "advanced-permanent-blackFive" ||
|
|
|
_product_code == KMAISubscriptionYearTrailCodeKey_DMG {
|
|
|
// 全平台高级版年订阅 99.9 美金,带免费试用
|