|
@@ -1120,7 +1120,42 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
|
|
|
|
xibInitialization()
|
|
|
priceRefresh(productsModel: _product_Info)
|
|
|
- pdfReaderProLabel.stringValue = product_Info.productName //待区分多语
|
|
|
+
|
|
|
+ func isSubscribeCode()-> Bool {//是否是订阅
|
|
|
+ if(product_code == "standard-annual-subscription" ||
|
|
|
+ product_code == "advanced-annual-subscription-blackFive" ||
|
|
|
+ product_code == "advanced-annual-subscription-trail" ||
|
|
|
+ product_code == "advanced-annual-subscription" ||
|
|
|
+ product_code == "ai-subscription-year-trail" ||
|
|
|
+ product_code == "ai-subscription-month") {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
+ func isOneTimePurchaseCode()-> Bool { //是否是一次性购买
|
|
|
+ if(product_code == "advanced-permanent-blackFive" ||
|
|
|
+ product_code == "advanced-permanent") {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if(_product_code == "standard-annual-subscription") {
|
|
|
+ pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Standard - Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if (_product_code == "advanced-annual-subscription-blackFive" ||
|
|
|
+ _product_code == "advanced-annual-subscription-trail" ||
|
|
|
+ _product_code == "advanced-annual-subscription") {
|
|
|
+ pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Advanced - Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if (_product_code == "ai-subscription-year-trail") {
|
|
|
+ pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Al - Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if (_product_code == "ai-subscription-month") {
|
|
|
+ pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Al - Monthly Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if (_product_code == "advanced-permanent-blackFive" ||
|
|
|
+ _product_code == "advanced-permanent") {
|
|
|
+ pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Permanent", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else {
|
|
|
+ pdfReaderProLabel.stringValue = product_Info.productName //待区分多语
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|