|
@@ -1032,26 +1032,26 @@ import Cocoa
|
|
|
if KMMemberInfo.shared.isPermitConvert == true {
|
|
|
|
|
|
} else {
|
|
|
- var vc = KMToolCompareWindowController(toolType: .Convert, selectNum: 1)
|
|
|
- vc.showWindow(nil)
|
|
|
- }
|
|
|
- let userScenarioType = KMMemberInfo.shared.userScenarioType
|
|
|
- let platforms = KMMemberInfo.shared.vip_platforms
|
|
|
- let platformsArray = platforms
|
|
|
- .components(separatedBy: ",")
|
|
|
- .map { $0.trimmingCharacters(in: .whitespaces) }
|
|
|
- if userScenarioType == .lite_type2 ||
|
|
|
- userScenarioType == .lite_type4 ||
|
|
|
- userScenarioType == .lite_type6 ||
|
|
|
- userScenarioType == .lite_type8 {
|
|
|
- // 订阅中,Android单平台高级版月订阅或者全平台标准版年订阅,不能升级,提示联系客服
|
|
|
- if !platformsArray.contains("mac") ||
|
|
|
- KMMemberInfo.shared.vip_levels != "3" {
|
|
|
- let alert = NSAlert()
|
|
|
- alert.alertStyle = .critical
|
|
|
- alert.informativeText = NSLocalizedString("Sorry, you do not have the rights to this paid feature and cannot use it. If you have any questions, please contact customer service at support@pdfreaderpro.com", comment: "")
|
|
|
- alert.addButton(withTitle: NSLocalizedString("Got it", comment: ""))
|
|
|
- alert.runModal()
|
|
|
+// var vc = KMToolCompareWindowController(toolType: .Convert, selectNum: 1)
|
|
|
+// vc.showWindow(nil)
|
|
|
+ let userScenarioType = KMMemberInfo.shared.userScenarioType
|
|
|
+ let platforms = KMMemberInfo.shared.vip_platforms
|
|
|
+ let platformsArray = platforms
|
|
|
+ .components(separatedBy: ",")
|
|
|
+ .map { $0.trimmingCharacters(in: .whitespaces) }
|
|
|
+ if userScenarioType == .lite_type2 ||
|
|
|
+ userScenarioType == .lite_type4 ||
|
|
|
+ userScenarioType == .lite_type6 ||
|
|
|
+ userScenarioType == .lite_type8 {
|
|
|
+ // 订阅中,Android单平台高级版月订阅或者全平台标准版年订阅,不能升级,提示联系客服
|
|
|
+ if !platformsArray.contains("mac") ||
|
|
|
+ KMMemberInfo.shared.vip_levels != "3" {
|
|
|
+ let alert = NSAlert()
|
|
|
+ alert.alertStyle = .critical
|
|
|
+ alert.informativeText = NSLocalizedString("Sorry, you do not have the rights to this paid feature and cannot use it. If you have any questions, please contact customer service at support@pdfreaderpro.com", comment: "")
|
|
|
+ alert.addButton(withTitle: NSLocalizedString("Got it", comment: ""))
|
|
|
+ alert.runModal()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
} else {
|