Showing
2 changed files
with
13 additions
and
2 deletions
No preview for this file type
... | @@ -2012,7 +2012,12 @@ public class swiftApi { | ... | @@ -2012,7 +2012,12 @@ public class swiftApi { |
2012 | } | 2012 | } |
2013 | 2013 | ||
2014 | public func setCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void { | 2014 | public func setCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void { |
2015 | - GlobalVariables.campaigns = campaigns | 2015 | + let userTag = self.getUserTag() |
2016 | + if ((userTag != nil) && (userTag != "")) { | ||
2017 | + GlobalVariables.campaigns = campaigns.filter { $0.offer_category != "questionnaire" } | ||
2018 | + } else { | ||
2019 | + GlobalVariables.campaigns = campaigns | ||
2020 | + } | ||
2016 | } | 2021 | } |
2017 | 2022 | ||
2018 | 2023 | ||
... | @@ -2141,7 +2146,13 @@ public class swiftApi { | ... | @@ -2141,7 +2146,13 @@ public class swiftApi { |
2141 | 2146 | ||
2142 | 2147 | ||
2143 | public func setUniqueCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void { | 2148 | public func setUniqueCampaignList(_ campaigns: Array<CampaignItemModel>) -> Void { |
2144 | - GlobalVariables.campaigns = campaigns | 2149 | + let userTag = self.getUserTag() |
2150 | + | ||
2151 | + if ((userTag != nil) && (userTag != "")) { | ||
2152 | + GlobalVariables.campaigns = campaigns.filter { $0.offer_category != "questionnaire" } | ||
2153 | + } else { | ||
2154 | + GlobalVariables.campaigns = campaigns | ||
2155 | + } | ||
2145 | } | 2156 | } |
2146 | 2157 | ||
2147 | 2158 | ... | ... |
-
Please register or login to post a comment