浏览代码

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

dinglingui 5 天之前
父节点
当前提交
e02176e7aa
共有 1 个文件被更改,包括 5 次插入0 次删除
  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 {