Ver código fonte

【会员系统】转档全平台标准年订阅无法使用转档

wanjun 3 meses atrás
pai
commit
57a820c432

+ 14 - 5
PDF Office/PDF Master/Class/PDFTools/Convert/NewController/KMConvertWindowController.swift

@@ -1001,12 +1001,21 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
         }
 #if VERSION_DMG
         if KMMemberInfo.shared.isMemberAllFunction && !KMMemberInfo.shared.isPermitConvert {
-            let limitWC = KMPurchaseLimitWindowController.currentLimitWC()
-            limitWC.continueBlock = { windowController in
-                
+            if KMMemberInfo.shared.userScenarioType == .dmg_type8 ||
+                KMMemberInfo.shared.userScenarioType == .dmg_type9 {
+                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 {
+                let limitWC = KMPurchaseLimitWindowController.currentLimitWC()
+                limitWC.continueBlock = { windowController in
+                    
+                }
+                limitWC.window?.center()
+                limitWC.showWindow(nil)
             }
-            limitWC.window?.center()
-            limitWC.showWindow(nil)
         } else {
             if KMMemberInfo.shared.userScenarioType == .dmg_type16 ||
                 KMMemberInfo.shared.userScenarioType == .dmg_type17 {