Преглед изворни кода

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

tangchao пре 1 недеља
родитељ
комит
2aa1916a71

+ 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
             }