Browse Source

【会员系统】- 转档功能,Android单平台高级版月订阅或者全平台标准版年订阅,不能升级,提示联系客服

wangshuai 3 months ago
parent
commit
afdc3624c4
1 changed files with 6 additions and 4 deletions
  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: "")