Przeglądaj źródła

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

tangchao 2 dni temu
rodzic
commit
692ca0332e

+ 5 - 0
PDF Office/PDF Master/Class/AIInfo/AIUserInfoController/AIUserInfoController.swift

@@ -248,6 +248,11 @@ import Cocoa
     func updateBtnShowState() {
 #if VERSION_DMG
         self.emptyRestoreBtn.isHidden = false
+        if KMMemberInfo.shared.ai_status == 1 {
+            self.creditsBuyNowBox.isHidden = true
+        } else {
+            self.creditsBuyNowBox.isHidden = false
+        }
 #else
         self.emptyRestoreBtn.isHidden = true
         self.creditsRestoreBtn.isHidden = true

+ 7 - 1
PDF Office/PDF Master/MemberCenter/Model/KMMemberInfo.swift

@@ -1126,7 +1126,13 @@ import Cocoa
                         if KMMemberInfo.shared.aiPoint > 0 {
                             
                         } else {
-                            AIPurchaseWindowController.currentWC().showWindow(nil)
+#if VERSION_DMG
+                        let embeddedWC = KMPurchaseEmbeddedWindowController.currentCode(KMAISubscriptionMonthCodeKey_DMG)
+                        embeddedWC.showWindow(nil)
+                        embeddedWC.window?.center()
+#else
+                        AIPurchaseWindowController.currentWC().showWindow(nil)
+#endif
                         }
                     }
                 }