|
@@ -408,6 +408,17 @@ class KMProductCompareWC: NSWindowController {
|
|
|
advancedPlanPurchaseLabel.stringValue = model.getProductPrice(.pdfReaderProAdvanced_dmg)
|
|
|
}
|
|
|
#else
|
|
|
+ var isTrialPeriod = false
|
|
|
+ if IAPProductsManager.default().fourDevicesAllAccessPackNew12months_lite.isTrialPeriod == true {
|
|
|
+ isTrialPeriod = true
|
|
|
+ }
|
|
|
+ if(!isTrialPeriod &&
|
|
|
+ KMMemberInfo.shared.canTrail) {
|
|
|
+ if(model.state == .trial) {
|
|
|
+ advancedPlanPurchaseLbl.stringValue = NSLocalizedString("Free Trial", comment: "")
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// AppStore 免费版本
|
|
|
if model.state == .lite_Base {
|
|
|
permanentPurchaseLabel.stringValue = model.getProductPrice(.allAccessPackPermanent_lite)
|
|
@@ -737,34 +748,23 @@ class KMProductCompareWC: NSWindowController {
|
|
|
let isSubscribed_year = fourDevicesAllAccessPackNew12months_lite?.isSubscribed ?? false
|
|
|
let introductoryPrice_newlyMonth = fourDevicesAllAccessPackNew6Months_lite?.product?.introductoryPrice
|
|
|
let introductoryPrice_year = fourDevicesAllAccessPackNew12months_lite?.product?.introductoryPrice
|
|
|
-
|
|
|
- if isTrialPeriod_newlyMonth {
|
|
|
- value1PurchaseBtnLbl.stringValue = NSLocalizedString("Subscribe", comment: "")
|
|
|
- if isSubscribed_newlyMonth {
|
|
|
- value1PurchaseBtnLbl.stringValue = NSLocalizedString("Subscribed", comment: "")
|
|
|
- }
|
|
|
- } else if isTrialPeriod_year {
|
|
|
- value1PurchaseBtnLbl.stringValue = NSLocalizedString("Subscribe", comment: "")
|
|
|
- if isSubscribed_year {
|
|
|
- value1PurchaseBtnLbl.stringValue = NSLocalizedString("Subscribed", comment: "")
|
|
|
- }
|
|
|
+
|
|
|
+ if(isSubscribed_newlyMonth || isSubscribed_year) {
|
|
|
+ value1PurchaseBtnLbl.stringValue = NSLocalizedString("Subscribed", comment: "")
|
|
|
} else {
|
|
|
- if isSubscribed_newlyMonth || isSubscribed_year {
|
|
|
- value1PurchaseBtnLbl.stringValue = NSLocalizedString("Subscribed", comment: "")
|
|
|
- } else {
|
|
|
- value1PurchaseBtnLbl.stringValue = NSLocalizedString("Free Trial", comment: "")
|
|
|
- if #available(macOS 10.13.2, *) {
|
|
|
- #if !VERSION_DMG
|
|
|
- if introductoryPrice_newlyMonth == nil {
|
|
|
- value1PurchaseBtnLbl.stringValue = NSLocalizedString("Subscribe", comment: "")
|
|
|
- } else if introductoryPrice_year == nil {
|
|
|
- value1PurchaseBtnLbl.stringValue = NSLocalizedString("Subscribe", comment: "")
|
|
|
- }
|
|
|
- #endif
|
|
|
+ if(model.isPurchaseSwitch == true) {
|
|
|
+ if(!isTrialPeriod_year &&
|
|
|
+ KMMemberInfo.shared.canTrail) {
|
|
|
+ value1PurchaseBtnLbl.stringValue = NSLocalizedString("Free Trial", comment: "")
|
|
|
+ } else {
|
|
|
+ value1PurchaseBtnLbl.stringValue = NSLocalizedString("Subscribe", comment: "")
|
|
|
}
|
|
|
+ } else {
|
|
|
+ value1PurchaseBtnLbl.stringValue = NSLocalizedString("Subscribe", comment: "")
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
value1PurchaseBtnLbl.textColor = value1PurchaseBtnLblBtn.isEnabled ? NSColor.white : NSColor.white.withAlphaComponent(0.5)
|
|
|
permanentPurchaseLblBtn.isEnabled = permanentPurchaseButton.isEnabled
|
|
|
standardPlanPurchaseLblBtn.isEnabled = standardPlanPurchaseButton.isEnabled
|