Browse Source

【会员系统】修改试用过期状态判断

dinglingui 5 days ago
parent
commit
e02176e7aa
1 changed files with 5 additions and 0 deletions
  1. 5 0
      PDF Office/PDF Master/MemberCenter/Model/KMMemberInfo.swift

+ 5 - 0
PDF Office/PDF Master/MemberCenter/Model/KMMemberInfo.swift

@@ -650,6 +650,11 @@ import Cocoa
                 if KMMemberInfo.shared.canTrail && KMMemberInfo.shared.vip_levels == "1" {
                     return .lite_type1
                 }
+                
+                if(KMMemberInfo.shared.canTrail == false && KMMemberInfo.shared.vip_levels == "1" && KMMemberInfo.shared.vip_status != 2) { //试用过期
+                    return .lite_type3
+                }
+                
                 if KMMemberInfo.shared.vip_status == 3 {
                     return .lite_type2
                 } else if KMMemberInfo.shared.vip_status == 4 {