|
@@ -541,10 +541,12 @@ import Cocoa
|
|
|
if userScenarioType == .lite_type1 {
|
|
|
// 试用比较表
|
|
|
KMProductCompareWC.shared.orientationType = .trial
|
|
|
+ KMProductCompareWC.shared.showWindow(nil)
|
|
|
} else if userScenarioType == .lite_type3 ||
|
|
|
userScenarioType == .lite_type7 {
|
|
|
// 购买比较表
|
|
|
KMProductCompareWC.shared.orientationType = .lite_Base
|
|
|
+ KMProductCompareWC.shared.showWindow(nil)
|
|
|
} else if userScenarioType == .lite_type5 {
|
|
|
// 升级比较表
|
|
|
// 有账号(单、多平台)高级永久权益,升级全平台权益
|
|
@@ -555,6 +557,19 @@ import Cocoa
|
|
|
// 多平台升级
|
|
|
KMProductCompareWC.shared.orientationType = .lite_MacWindows
|
|
|
}
|
|
|
+ KMProductCompareWC.shared.showWindow(nil)
|
|
|
+ } else if userScenarioType == .lite_type2 ||
|
|
|
+ userScenarioType == .lite_type4 ||
|
|
|
+ userScenarioType == .lite_type6 ||
|
|
|
+ userScenarioType == .lite_type8 {
|
|
|
+ // 订阅中,Android单平台高级版月订阅,不能升级,提示联系客服
|
|
|
+ if !platformsArray.contains("mac") {
|
|
|
+ let alert = NSAlert()
|
|
|
+ alert.alertStyle = .critical
|
|
|
+ alert.informativeText = NSLocalizedString("Contact Us", comment: "")
|
|
|
+ alert.addButton(withTitle: NSLocalizedString("OK", comment: ""))
|
|
|
+ alert.runModal()
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 有旧买断
|
|
@@ -574,9 +589,8 @@ import Cocoa
|
|
|
// 有本地单平台高级永久权益,升级全平台权益
|
|
|
KMProductCompareWC.shared.orientationType = .lite_MacWindows
|
|
|
}
|
|
|
+ KMProductCompareWC.shared.showWindow(nil)
|
|
|
}
|
|
|
-
|
|
|
- KMProductCompareWC.shared.showWindow(nil)
|
|
|
#endif
|
|
|
#else
|
|
|
// AppStore 付费版
|
|
@@ -587,6 +601,7 @@ import Cocoa
|
|
|
// 升级比较表
|
|
|
// 有本地单平台标准永久权益,升级全平台、升级单平台高级权益
|
|
|
KMProductCompareWC.shared.orientationType = .pro_Base
|
|
|
+ KMProductCompareWC.shared.showWindow(nil)
|
|
|
} else if userScenarioType == .pro_type4 {
|
|
|
// 升级比较表
|
|
|
// 有账号(单、多平台)高级永久权益,升级全平台权益
|
|
@@ -597,6 +612,16 @@ import Cocoa
|
|
|
// 多平台升级
|
|
|
KMProductCompareWC.shared.orientationType = .pro_Advanced
|
|
|
}
|
|
|
+ KMProductCompareWC.shared.showWindow(nil)
|
|
|
+ } else if userScenarioType == .pro_type5 {
|
|
|
+ // 订阅中,Android单平台高级版月订阅,不能升级,提示联系客服
|
|
|
+ if !platformsArray.contains("mac") {
|
|
|
+ let alert = NSAlert()
|
|
|
+ alert.alertStyle = .critical
|
|
|
+ alert.informativeText = NSLocalizedString("Contact Us", comment: "")
|
|
|
+ alert.addButton(withTitle: NSLocalizedString("OK", comment: ""))
|
|
|
+ alert.runModal()
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 有旧订阅
|
|
@@ -615,9 +640,8 @@ import Cocoa
|
|
|
// 有本地单平台高级永久权益,升级全平台权益
|
|
|
KMProductCompareWC.shared.orientationType = .pro_Advanced
|
|
|
}
|
|
|
+ KMProductCompareWC.shared.showWindow(nil)
|
|
|
}
|
|
|
-
|
|
|
- KMProductCompareWC.shared.showWindow(nil)
|
|
|
#endif
|
|
|
}
|
|
|
|