Browse Source

【综合】AI补充刷新权益

tangchao 3 months ago
parent
commit
3302f7ee32

+ 6 - 0
PDF Office/PDF Master/Class/AIInfo/AIConfigWindowController/AINewConfigWindowController.swift

@@ -291,6 +291,12 @@ protocol AIConfigWindowDelegate: AnyObject {
     }
     
     func chooseAIFunctionWithType(_ aiConfigType: AIConfigType) -> Void {
+        AccountTools.refreshRights(isActivaDevice: true, isDealCode: true) { model in
+            self.oem_chooseAIFunctionWithType(aiConfigType)
+        }   
+    }
+    
+    func oem_chooseAIFunctionWithType(_ aiConfigType: AIConfigType) -> Void {
         if AccountManager.manager.hasAiPermissions == false {
 //        if AIInfoManager.default().aiInfo.infoDict.keys.count == 0 {
 #if VERSION_DMG

+ 5 - 0
PDF Office/PDF Master/Class/AIInfo/AIConfigWindowController/Views/AIHeaderView/AIHeaderView.swift

@@ -52,6 +52,11 @@ class AIHeaderView: NSView, NibLoadable {
     
     //MARK: IBAction
     @IBAction func creditInfoAction(_ sender: NSButton) {
+        if AccountManager.manager.hasAiPermissions {
+            let winC = AccountCenterWindowController()
+            self.km_beginSheet(windowC: winC)
+            return
+        }
         if AccountManager.manager.isLogin == false {
             let winC = AccountCenterWindowController()
             self.km_beginSheet(windowC: winC)

+ 1 - 1
PDF Office/PDF Master/Class/KMLightMember/Config/KMLightMemberConfig.swift

@@ -16,7 +16,7 @@ class KMLightMemberConfig: NSObject {
             #if DEBUG
             if self.isDebug {
                 // 测试服务器
-                return "http://139.196.160.101:8081"
+                return "http://8.134.106.49:8081"
             } else {
                 // 正式服务器
                 return "https://pdfmaster.pdfreaderpro.com"

+ 1 - 1
PDF Office/PDF Master/Class/Purchase/DMG/Verification/VerificationManager/VerificationManager.h

@@ -19,7 +19,7 @@
 #define kVerificationServer         @"http://test-store.kdan.cn:3018/"
 #define kWebServerLink              NSLocalizedString(@"http://test-pdf-pro.kdan.cn:3021", nil)
 
-#define kVerificationPDFullServer         @"http://139.196.160.101:8032/pdf-tech/"
+#define kVerificationPDFullServer         @"http://8.134.106.49:8032/pdf-tech/"
 
 #else