Pārlūkot izejas kodu

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

dinglingui 1 nedēļu atpakaļ
vecāks
revīzija
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 {