Bläddra i källkod

【会员系统】修复非购买比较表时,不展示折扣图片

wanjun 6 dagar sedan
förälder
incheckning
092b16dcba

+ 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