Procházet zdrojové kódy

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

dinglingui před 1 týdnem
rodič
revize
e02176e7aa

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