Browse Source

【会员系统】付费版判断转档权益

dinglingui 1 week ago
parent
commit
bc4c38d78b
1 changed files with 4 additions and 2 deletions
  1. 4 2
      PDF Office/PDF Master/MemberCenter/Model/KMMemberInfo.swift

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

@@ -824,13 +824,15 @@ import Cocoa
                         .map { $0.trimmingCharacters(in: .whitespaces) }
                         .map { $0.trimmingCharacters(in: .whitespaces) }
 
 
                     if  userScenarioType == .pro_type5 {
                     if  userScenarioType == .pro_type5 {
-                        if(platformsArray.contains("mac")) { //购买了mac
+                        if(platformsArray.contains("mac") && KMMemberInfo.shared.vip_levels == "3") { //购买了mac且高级
                             return true
                             return true
                         }
                         }
                     } else if userScenarioType == .pro_type1 ||
                     } else if userScenarioType == .pro_type1 ||
                               userScenarioType == .pro_type2 ||
                               userScenarioType == .pro_type2 ||
                               userScenarioType == .pro_type4  {
                               userScenarioType == .pro_type4  {
-                        return true
+                        if(platformsArray.contains("mac") && KMMemberInfo.shared.vip_levels == "3") { //购买了mac
+                            return true
+                        }
                     }
                     }
                     return false
                     return false
                 }
                 }