From 2d29fde054d5e9ef89a9b87ee22fd989b3e7f25a Mon Sep 17 00:00:00 2001 From: lyt Date: Tue, 4 Jun 2019 09:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=BF=E6=A0=87=E5=87=86=E5=A1=AB:?= =?UTF-8?q?=E5=85=A5=E4=BD=8F=E4=BA=BA,=E5=85=A5=E4=BD=8F=E6=97=A5?= =?UTF-8?q?=E6=9C=9F;=E6=8A=B5=E8=BE=BE/=E8=BF=94=E7=A8=8B=E8=88=AA?= =?UTF-8?q?=E8=BD=A6:=20=E9=85=92=E5=BA=97(=E4=B8=8A/=E4=B8=8B=E8=BD=A6?= =?UTF-8?q?=E5=9C=B0=E7=82=B9)=E4=B8=AD=E8=8B=B1=E6=96=87=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vendorPlanSync/libraries/Tulanduo.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/webht/third_party/vendorPlanSync/libraries/Tulanduo.php b/webht/third_party/vendorPlanSync/libraries/Tulanduo.php index dbcac12c..b4ddf29a 100644 --- a/webht/third_party/vendorPlanSync/libraries/Tulanduo.php +++ b/webht/third_party/vendorPlanSync/libraries/Tulanduo.php @@ -522,8 +522,17 @@ log_message('error',$resp); if (trim($hotels[0]->POI_HotelAddress) != "") { $this_content .= "\r\n酒店地址:" . $hotels[0]->POI_HotelAddress; } - $this_content .= trim($hotels[0]->POI_HotelCheckInName)!=="" ? "\r\n入住人:".$hotels[0]->POI_HotelCheckInName : ""; - $this_content .= trim($hotels[0]->POI_HotelCheckIn)!=="" ? "\r\n入住日期:".$hotels[0]->POI_HotelCheckIn : ""; + if (trim($hotels[0]->POI_Hotel) != '') { + $this->ci->tldOrderBuilder->setToTraffic($hotels[0]->POI_Hotel); + $this->ci->tldOrderBuilder->setBackTraffic($hotels[0]->POI_Hotel); + } + $checkin_name = trim($hotels[0]->POI_HotelCheckInName)!=="" ? "\r\n入住人:".$hotels[0]->POI_HotelCheckInName : ""; + $checkin_date = trim($hotels[0]->POI_HotelCheckIn)!=="" ? "\r\n入住日期:".$hotels[0]->POI_HotelCheckIn : ""; + $this_content .= $checkin_name; + $this_content .= $checkin_date; + if ($checkin_name!=='' || $checkin_date!=='') { + $this->ci->tldOrderBuilder->setRoomStandard(trim($checkin_name) . ", " . trim($checkin_date)); + } if ($hotels[0]->POI_FlightsNo) { $this_content .= "\r\n航/车次:" . $hotels[0]->POI_FlightsNo; if ($hotels[0]->POI_FromCity || $hotels[0]->POI_ToCity) {