Quellcode durchsuchen

【综合】活动配置调整

niehaoyu vor 8 Monaten
Ursprung
Commit
968603ccd5

+ 2 - 3
PDF Office/PDF Master/Class/KMAdvertisement/Manager/KMAdvertisementManager.swift

@@ -375,8 +375,7 @@ extension KMAdvertisementManager {
         }
         
         let currentTime = Int(NSDate.init().timeIntervalSince1970 * 1000)
-        if info.show == "1" &&
-            currentTime > Int(info.startTime ?? "0") ?? currentTime &&
+        if currentTime > Int(info.startTime ?? "0") ?? currentTime &&
             currentTime < Int(info.endTime ?? "0") ?? currentTime {
            
         } else {
@@ -385,7 +384,7 @@ extension KMAdvertisementManager {
         
         
         if info.subscriptionType == "1" {
-            if !IAPProductsManager.default().isAvailableAllFunction() {
+            if IAPProductsManager.default().isAvailableAllFunction() {
                 return false
             }
         } else if info.subscriptionType == "2" {