浏览代码

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

dinglingui 1 周之前
父节点
当前提交
5ad4874978
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      PDF Office/PDF Master/MemberCenter/Model/KMMemberInfo.swift

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