|
|
@ -220,11 +220,14 @@ class Tulanduo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$from_country = ""; // 客源地
|
|
|
|
$from_country = ""; // 客源地
|
|
|
|
if ($guestlist===null) {
|
|
|
|
if ($guestlist===null) {
|
|
|
|
|
|
|
|
// 商务订单的客人列表
|
|
|
|
$g_cold_str = array_map(function ($ele){return $ele->GRD_COLD_SN;}, $vo['details']);
|
|
|
|
$g_cold_str = array_map(function ($ele){return $ele->GRD_COLD_SN;}, $vo['details']);
|
|
|
|
$guestlist = $this->ci->BIZ_order->get_guestlist(implode(',',$g_cold_str));
|
|
|
|
$guestlist = $this->ci->BIZ_order->get_guestlist(implode(',',$g_cold_str));
|
|
|
|
$from_country = current(array_filter(array_map(function ($ele){return $ele->Country;},$guestlist)));
|
|
|
|
$from_country = current(array_filter(array_map(function ($ele){return $ele->Country;},$guestlist)));
|
|
|
|
|
|
|
|
// 联系人
|
|
|
|
|
|
|
|
$biz_contact = $this->ci->BIZ_order->get_customer_contact(implode(',',$g_cold_str));
|
|
|
|
|
|
|
|
$guestlist[0]->phone = $biz_contact->phone;
|
|
|
|
if (strval($from_country)==='') {
|
|
|
|
if (strval($from_country)==='') {
|
|
|
|
$biz_contact = $this->ci->BIZ_order->get_customer_contact(implode(',',$g_cold_str));
|
|
|
|
|
|
|
|
$from_country = $biz_contact->Country;
|
|
|
|
$from_country = $biz_contact->Country;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -239,6 +242,9 @@ class Tulanduo
|
|
|
|
$from_country = $vg->Country;
|
|
|
|
$from_country = $vg->Country;
|
|
|
|
$this_otherinfo .= $vg->Country;
|
|
|
|
$this_otherinfo .= $vg->Country;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (strval($vg->Gender) !== '') {
|
|
|
|
|
|
|
|
$this_otherinfo .= "; " . $vg->Gender;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (strval($vg->BirthDay) !== '') {
|
|
|
|
if (strval($vg->BirthDay) !== '') {
|
|
|
|
$this_otherinfo .= "; 生日:". $vg->BirthDay;
|
|
|
|
$this_otherinfo .= "; 生日:". $vg->BirthDay;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -470,6 +476,9 @@ class Tulanduo
|
|
|
|
$from_country = $vg->Country;
|
|
|
|
$from_country = $vg->Country;
|
|
|
|
$this_otherinfo .= $vg->Country;
|
|
|
|
$this_otherinfo .= $vg->Country;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (strval($vg->Gender) !== '') {
|
|
|
|
|
|
|
|
$this_otherinfo .= "; " . $vg->Gender;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (strval($vg->BirthDay) !== '') {
|
|
|
|
if (strval($vg->BirthDay) !== '') {
|
|
|
|
$this_otherinfo .= "; 生日:". $vg->BirthDay;
|
|
|
|
$this_otherinfo .= "; 生日:". $vg->BirthDay;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -765,6 +774,9 @@ class Tulanduo
|
|
|
|
$from_country = $vg->Country;
|
|
|
|
$from_country = $vg->Country;
|
|
|
|
$this_otherinfo .= "; " . $vg->Country;
|
|
|
|
$this_otherinfo .= "; " . $vg->Country;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (strval($vg->Gender) !== '') {
|
|
|
|
|
|
|
|
$this_otherinfo .= "; " . $vg->Gender;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (strval($vg->BirthDay) !== '') {
|
|
|
|
if (strval($vg->BirthDay) !== '') {
|
|
|
|
$this_otherinfo .= "; 生日:". $vg->BirthDay;
|
|
|
|
$this_otherinfo .= "; 生日:". $vg->BirthDay;
|
|
|
|
}
|
|
|
|
}
|
|
|
|