From 783e179dfee4be549abae9eeefab0cd89434295a Mon Sep 17 00:00:00 2001 From: adametz Date: Fri, 20 Jul 2018 07:24:51 +0000 Subject: [PATCH] Anpassung IBE git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3429 f459cee4-fb09-11de-96c3-f9c5f16c3c76 --- .../Controller/DefaultController.php | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/trunk/src/AppBundle/Controller/DefaultController.php b/trunk/src/AppBundle/Controller/DefaultController.php index 3872c61d..385e4587 100644 --- a/trunk/src/AppBundle/Controller/DefaultController.php +++ b/trunk/src/AppBundle/Controller/DefaultController.php @@ -112,16 +112,16 @@ class DefaultController extends Controller { $data = $form->getData(); - $ttUrl = "http://dtps-ibe.traveltainment.de/offer/?&taid=DRS32"; //ibe=package"; + //$ttUrl = "http://dtps-ibe.traveltainment.de/hotel/?&taid=DRS32"; //ibe=package"; /*$requests = "&ibe=package&aidgiata=49720&ddate=".date("Y-m-d", 1523397600)."&depap=TXL&rdate=".date("Y-m-d", 1524002400)."&dur=6,2&brand=FTI&oid=ASW318;PAUS;;DSQF&adult=2";*/ - + $ttUrl = ""; $ttUrl .= '&ddate=' . $data['termin']->format('d.m.Y'); $ttUrl .= '&rdate=' . $data['ruecktermin']->format('d.m.Y'); if (!empty($data['dauer'])){ $ttUrl .= '&dur='.str_replace("_", ",", $data['dauer']); } - + $ttUrl .= '&adult=2'; if (!empty($data['t'])) { $ttUrl .= '&adult='. $data['t']; @@ -135,19 +135,26 @@ class DefaultController extends Controller } $ttUrl .= '&child='. $count; } - $ttUrl .= '&ibe='; + // $ttUrl .= '&ibes='; if (!empty($data['topRegion'])) { if(isset(TtSearchRequestType::$DESTINATION_CHOICES[$data['topRegion']])){ - $ttUrl .= 'package&rgid='. TtSearchRequestType::$DESTINATION_CHOICES[$data['topRegion']]; + // $ttUrl .= 'hotel&rgid='. TtSearchRequestType::$DESTINATION_CHOICES[$data['topRegion']]; + $ttUrl .= '&rid='. TtSearchRequestType::$DESTINATION_CHOICES[$data['topRegion']]; + $ttUrl = "https://dtps-ibe.traveltainment.de/hotel/?&taid=DRS32".$ttUrl; }else{ - $ttUrl .= 'package&rgid='. $data['topRegion']; + // $ttUrl .= 'package&rgid='. $data['topRegion']; + $ttUrl .= '&rid='. $data['topRegion']; + $ttUrl = "https://dtps-ibe.traveltainment.de/offer/?&taid=DRS32".$ttUrl; } } + //https://dtps-ibe.traveltainment.de/hotel?taid=DRS32&ddate=2018-07-25&rdate=2018-08-08&adult=2&rid=2202 + //http://dtps-ibe.traveltainment.de/hotel?taid=DRS32&ddate=2018-07-25&rdate=2018-08-08&dur=6,14&adult=1&child=0&rgid=2202 else { - $ttUrl .= 'package'; + //$ttUrl .= 'package'; + $ttUrl = "https://dtps-ibe.traveltainment.de/offer/?&taid=DRS32".$ttUrl; } if (!empty($data['abflughafen'])) $ttUrl .= '&depap='. $data['abflughafen']; if (!empty($data['shotel'])) $ttUrl .= '&accom='. urlencode($data['shotel']);