Browse Source

【会员系统】修复“AI 月订阅 或 年订阅 订阅中状态,应该要隐藏AI的 Buy Now 入口”

wanjun 1 week ago
parent
commit
d6a9706e00

+ 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