浏览代码

Merge branch 'develop_PDFReaderPro_V4.7.0' of git.kdan.cc:Mac_PDF/PDF_Office into develop_PDFReaderPro_V4.7.0

dinglingui 3 月之前
父节点
当前提交
433a672112
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      PDF Office/PDF Master/MemberCenter/Model/KMMemberInfo.swift

+ 6 - 4
PDF Office/PDF Master/MemberCenter/Model/KMMemberInfo.swift

@@ -565,8 +565,9 @@ import Cocoa
                     userScenarioType == .lite_type4 ||
                     userScenarioType == .lite_type6 ||
                     userScenarioType == .lite_type8 {
-            // 订阅中,Android单平台高级版月订阅,不能升级,提示联系客服
-            if !platformsArray.contains("mac") {
+            // 订阅中,Android单平台高级版月订阅或者全平台标准版年订阅,不能升级,提示联系客服
+            if !platformsArray.contains("mac") ||
+                KMMemberInfo.shared.vip_levels != "3" {
                 let alert = NSAlert()
                 alert.alertStyle = .critical
                 alert.informativeText = NSLocalizedString("Contact Us", comment: "")
@@ -618,8 +619,9 @@ import Cocoa
             }
             KMProductCompareWC.shared.showWindow(nil)
         } else if userScenarioType == .pro_type5 {
-            // 订阅中,Android单平台高级版月订阅,不能升级,提示联系客服
-            if !platformsArray.contains("mac") {
+            // 订阅中,Android单平台高级版月订阅或者全平台标准版年订阅,不能升级,提示联系客服
+            if !platformsArray.contains("mac") ||
+                KMMemberInfo.shared.vip_levels != "3" {
                 let alert = NSAlert()
                 alert.alertStyle = .critical
                 alert.informativeText = NSLocalizedString("Contact Us", comment: "")