瀏覽代碼

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

tangchao 6 天之前
父節點
當前提交
2aa1916a71
共有 1 個文件被更改,包括 7 次插入15 次删除
  1. 7 15
      PDF Office/PDF Master/MemberCenter/ViewController/KMUserInfoViewController.swift

+ 7 - 15
PDF Office/PDF Master/MemberCenter/ViewController/KMUserInfoViewController.swift

@@ -451,25 +451,17 @@ class KMUserInfoViewController: NSViewController {
         endDateLabel.font = NSFont.SFProTextRegularFont(12)
         spliLineImageView.isHidden = true
         endDateLabel.isHidden = true
-        if KMMemberInfo.shared.userScenarioType == .lite_type2 ||
-            KMMemberInfo.shared.userScenarioType == .lite_type4 ||
-            KMMemberInfo.shared.userScenarioType == .lite_type6 ||
-            KMMemberInfo.shared.userScenarioType == .lite_type7 ||
-            KMMemberInfo.shared.userScenarioType == .lite_type8 ||
-            KMMemberInfo.shared.userScenarioType == .lite_type10 ||
-            KMMemberInfo.shared.userScenarioType == .lite_type12 ||
-            KMMemberInfo.shared.userScenarioType == .lite_type13 ||
-            KMMemberInfo.shared.userScenarioType == .pro_type2 ||
-            KMMemberInfo.shared.userScenarioType == .pro_type5 {
+        if KMMemberInfo.shared.vip_levels != "1" &&
+            KMMemberInfo.shared.vip_paymentModel == "1" &&
+            (KMMemberInfo.shared.vip_status == 1 || KMMemberInfo.shared.vip_status == 3) {
+            // 订阅中、试用中,显示到期日期
             if KMMemberInfo.shared.vip_endDate.count > 0 {
                 spliLineImageView.isHidden = false
                 endDateLabel.isHidden = false
             }
-        } else if KMMemberInfo.shared.userScenarioType == .lite_type9 ||
-                    KMMemberInfo.shared.userScenarioType == .pro_type1 ||
-                    KMMemberInfo.shared.userScenarioType == .pro_type3 {
-            if KMMemberInfo.shared.vip_endDate.count > 0 &&
-                KMMemberInfo.shared.vip_status == 2 {
+        } else if KMMemberInfo.shared.vip_status == 2 {
+            // 订阅到期,显示到期日期
+            if KMMemberInfo.shared.vip_endDate.count > 0 {
                 spliLineImageView.isHidden = false
                 endDateLabel.isHidden = false
             }