Kaynağa Gözat

【会员系统】付费版权益功能判断

dinglingui 1 hafta önce
ebeveyn
işleme
5ad4874978

+ 2 - 2
PDF Office/PDF Master/MemberCenter/Model/KMMemberInfo.swift

@@ -661,7 +661,7 @@ import Cocoa
                 } else if KMMemberInfo.shared.vip_paymentModel == "1" && KMMemberInfo.shared.vip_payType == 0 && KMMemberInfo.shared.vip_status == 1 {
                     return .lite_type8
                 }
-                if KMMemberInfo.shared.vip_paymentModel == "2" {
+                if KMMemberInfo.shared.vip_paymentModel == "2" && KMMemberInfo.shared.vip_status == 1  { //永久买断
                     return .lite_type5
                 } else {
                     if KMMemberInfo.shared.vip_cycle == 4 && platformsArray.count == 4 {
@@ -793,7 +793,7 @@ import Cocoa
                     } else if userScenarioType == .lite_type5 ||
                         userScenarioType == .lite_type4  ||
                                 userScenarioType == .lite_type8 {
-                        if(platformsArray.contains("mac")) { //购买了
+                        if(platformsArray.contains("mac") && KMMemberInfo.shared.vip_levels == "3") { //购买了
                             return true
                         }
                     } else if userScenarioType == .lite_type6 || userScenarioType == .lite_type12 {