Bladeren bron

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

wangshuai 2 dagen geleden
bovenliggende
commit
e934e54bfb
1 gewijzigde bestanden met toevoegingen van 13 en 2 verwijderingen
  1. 13 2
      PDF Office/PDF Master/MemberCenter/WindowsController/KMProductCompareWC.swift

+ 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