Browse Source

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

wangshuai 1 week ago
parent
commit
e934e54bfb

+ 13 - 2
PDF Office/PDF Master/MemberCenter/WindowsController/KMProductCompareWC.swift

@@ -328,9 +328,8 @@ class KMProductCompareWC: NSWindowController {
             showDiscountToSaveWindow()
         }
         reloadDataContent()
-
+        
         showDiscount()
-
     }
 
     // MARK: - Private Methods
@@ -959,6 +958,18 @@ class KMProductCompareWC: NSWindowController {
     }
 
     func showDiscount() {
+#if VERSION_FREE
+#if VERSION_DMG
+    // DMG
+        if model.state != .dmg_Base { return }
+#else
+    // AppStore 免费版本
+        if model.state != .lite_Base { return }
+#endif
+#else
+    // AppStore 付费版
+        if model.state != .pro_Base { return }
+#endif
         discountYearly.isHidden = true
         discountPermanent.isHidden = true