Manos Chorianopoulos

fix constructCcmsUrl logs

......@@ -1349,10 +1349,10 @@ public class swiftApi {
}
public func constructCcmsUrl(_ sessionId: String, _ campaign: LoyaltyContextualOfferModel) -> String {
print("CCMS_PRESSED" + " " + campaign._id + " " + campaign._offerName)
for item in GlobalVariables.campaigns {
if (item.loyaltyCampaignId == campaign._loyaltyCampaignId) {
print("CCMS_PRESSED" + " " + campaign._id + " " + campaign._offerName)
let instanceOfMyApi = MyApi()
let campaignInfo = instanceOfMyApi.provideInfoForCampaign()
let finalUrl = (item.index_url ?? "")
......@@ -1396,6 +1396,8 @@ public class swiftApi {
}
public func constructCcmsUrl(_ campaign: CampaignItemModel, _ ccmsCampaign: LoyaltyContextualOfferModel) -> String {
print("CCMS_PRESSED" + " " + ccmsCampaign._id + " " + ccmsCampaign._offerName)
let instanceOfMyApi = MyApi()
let campaignInfo = instanceOfMyApi.provideInfoForCampaign()
let finalUrl = (campaign.index_url ?? "")
......