|
@@ -451,25 +451,17 @@ class KMUserInfoViewController: NSViewController {
|
|
endDateLabel.font = NSFont.SFProTextRegularFont(12)
|
|
endDateLabel.font = NSFont.SFProTextRegularFont(12)
|
|
spliLineImageView.isHidden = true
|
|
spliLineImageView.isHidden = true
|
|
endDateLabel.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 {
|
|
if KMMemberInfo.shared.vip_endDate.count > 0 {
|
|
spliLineImageView.isHidden = false
|
|
spliLineImageView.isHidden = false
|
|
endDateLabel.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
|
|
spliLineImageView.isHidden = false
|
|
endDateLabel.isHidden = false
|
|
endDateLabel.isHidden = false
|
|
}
|
|
}
|