Manos Chorianopoulos

fix constructCcmsUrl logs

...@@ -1349,10 +1349,10 @@ public class swiftApi { ...@@ -1349,10 +1349,10 @@ public class swiftApi {
1349 } 1349 }
1350 1350
1351 public func constructCcmsUrl(_ sessionId: String, _ campaign: LoyaltyContextualOfferModel) -> String { 1351 public func constructCcmsUrl(_ sessionId: String, _ campaign: LoyaltyContextualOfferModel) -> String {
1352 - print("CCMS_PRESSED" + " " + campaign._id + " " + campaign._offerName)
1353 -
1354 for item in GlobalVariables.campaigns { 1352 for item in GlobalVariables.campaigns {
1355 if (item.loyaltyCampaignId == campaign._loyaltyCampaignId) { 1353 if (item.loyaltyCampaignId == campaign._loyaltyCampaignId) {
1354 + print("CCMS_PRESSED" + " " + campaign._id + " " + campaign._offerName)
1355 +
1356 let instanceOfMyApi = MyApi() 1356 let instanceOfMyApi = MyApi()
1357 let campaignInfo = instanceOfMyApi.provideInfoForCampaign() 1357 let campaignInfo = instanceOfMyApi.provideInfoForCampaign()
1358 let finalUrl = (item.index_url ?? "") 1358 let finalUrl = (item.index_url ?? "")
...@@ -1396,6 +1396,8 @@ public class swiftApi { ...@@ -1396,6 +1396,8 @@ public class swiftApi {
1396 } 1396 }
1397 1397
1398 public func constructCcmsUrl(_ campaign: CampaignItemModel, _ ccmsCampaign: LoyaltyContextualOfferModel) -> String { 1398 public func constructCcmsUrl(_ campaign: CampaignItemModel, _ ccmsCampaign: LoyaltyContextualOfferModel) -> String {
1399 + print("CCMS_PRESSED" + " " + ccmsCampaign._id + " " + ccmsCampaign._offerName)
1400 +
1399 let instanceOfMyApi = MyApi() 1401 let instanceOfMyApi = MyApi()
1400 let campaignInfo = instanceOfMyApi.provideInfoForCampaign() 1402 let campaignInfo = instanceOfMyApi.provideInfoForCampaign()
1401 let finalUrl = (campaign.index_url ?? "") 1403 let finalUrl = (campaign.index_url ?? "")
......