|
|
|
@ -238,9 +238,9 @@ class Tulanduo
|
|
|
|
|
->setCustomersDocumentType($key, "护照") // Passport No.
|
|
|
|
|
->setCustomersDocumentNo($key, $vg->PassportNo)
|
|
|
|
|
->setCustomersPhoneNo($key, $vg->phone);
|
|
|
|
|
if (strval($vg->Country) !== '' && strval($from_country) === '') {
|
|
|
|
|
$from_country = $vg->Country;
|
|
|
|
|
if (strval($vg->Country) !== '') {
|
|
|
|
|
$this_otherinfo .= $vg->Country;
|
|
|
|
|
$from_country = strval($from_country) === '' ? $vg->Country : $from_country;
|
|
|
|
|
}
|
|
|
|
|
if (strval($vg->Gender) !== '') {
|
|
|
|
|
$this_otherinfo .= "; " . $vg->Gender;
|
|
|
|
@ -283,12 +283,21 @@ class Tulanduo
|
|
|
|
|
->setScheduleDetailsContent($kd,
|
|
|
|
|
$vgrd->GRD_LeaveCity . "-" . $vgrd->GRD_ServiceCity . "\r\n" .
|
|
|
|
|
$vgrd->GRD_Landscape . "\r\n" . $vgrd->GRD_Traffic)
|
|
|
|
|
->setScheduleDetailsAccommodation($kd, $vgrd->GRD_Hotel)
|
|
|
|
|
->setScheduleDetailsTraffic($kd, ($vgrd->GRD_Traffic))
|
|
|
|
|
->setScheduleDetailsBreakFirst($kd, 0 )
|
|
|
|
|
->setScheduleDetailsDinner($kd, (trim($vgrd->GRD_Meal_S)==="" ? 0 : 1 ))
|
|
|
|
|
->setScheduleDetailsLunch($kd, (trim($vgrd->GRD_Meal_L)==="" ? 0 : 1 ))
|
|
|
|
|
;
|
|
|
|
|
// 酒店只写名字在线路信息中
|
|
|
|
|
if (isset($vgrd->hotel_name) && strval($vgrd->hotel_name)!=='') {
|
|
|
|
|
$this->ci->tldOrderBuilder->setScheduleDetailsAccommodation($kd, $vgrd->hotel_name);
|
|
|
|
|
} else {
|
|
|
|
|
$this->ci->tldOrderBuilder->setScheduleDetailsAccommodation($kd, $vgrd->GRD_Hotel);
|
|
|
|
|
}
|
|
|
|
|
if (strval($vgrd->GRD_Hotel) !=='' ) {
|
|
|
|
|
$this->ci->tldOrderBuilder->setRoomStandard($vgrd->GRD_OrderDate . " " . trim($vgrd->GRD_Hotel));
|
|
|
|
|
}
|
|
|
|
|
// 商务订单信息
|
|
|
|
|
if (isset($vgrd->hotel_checkin)) {
|
|
|
|
|
$this->ci->tldOrderBuilder->setRoomStandard(trim($vgrd->hotel_checkin));
|
|
|
|
|
}
|
|
|
|
@ -472,8 +481,8 @@ class Tulanduo
|
|
|
|
|
->setCustomersDocumentType($key, "护照") // Passport No.
|
|
|
|
|
->setCustomersDocumentNo($key, $vg->PassportNo)
|
|
|
|
|
;
|
|
|
|
|
if (strval($vg->Country) !== '' && strval($from_country) === '') {
|
|
|
|
|
$from_country = $vg->Country;
|
|
|
|
|
if (strval($vg->Country) !== '' ) {
|
|
|
|
|
$from_country = strval($from_country) === '' ? $vg->Country : $from_country;
|
|
|
|
|
$this_otherinfo .= $vg->Country;
|
|
|
|
|
}
|
|
|
|
|
if (strval($vg->Gender) !== '') {
|
|
|
|
@ -770,8 +779,8 @@ class Tulanduo
|
|
|
|
|
$this_otherinfo .= " " . trim($vf["cold"][0]->GUT_TEL);
|
|
|
|
|
$this->ci->tldOrderBuilder->setCustomersPhoneNo($key, $this_otherinfo);
|
|
|
|
|
}
|
|
|
|
|
if (strval($from_country) === '' && strval($vg->Country) !== '') {
|
|
|
|
|
$from_country = $vg->Country;
|
|
|
|
|
if ( strval($vg->Country) !== '') {
|
|
|
|
|
$from_country = strval($from_country) === '' ? $vg->Country : $from_country;
|
|
|
|
|
$this_otherinfo .= "; " . $vg->Country;
|
|
|
|
|
}
|
|
|
|
|
if (strval($vg->Gender) !== '') {
|
|
|
|
@ -785,6 +794,7 @@ class Tulanduo
|
|
|
|
|
}
|
|
|
|
|
$this->ci->tldOrderBuilder->setCustomersOtherInfo($key, $this_otherinfo);
|
|
|
|
|
}
|
|
|
|
|
// 客源地
|
|
|
|
|
if (strval($from_country)==='') {
|
|
|
|
|
$biz_contact = $this->ci->BIZ_order->get_customer_contact($COLD_SN_str);
|
|
|
|
|
$from_country = $biz_contact->Country;
|
|
|
|
|