删除原写入订单的代码;

hotfix/远程访问多媒体中心
lyt 7 years ago
parent 2925a16d08
commit 81e2232698

@ -86,12 +86,11 @@ class Tulanduo
}
// 商务
if (strval($order->GRI_OrderType) === "227002") {
// return false; // todo:
return $this->push_tour($order);
return $this->push_biz($order, strval($order->GRI_OrderType));
}
// 传统订单
if (strval($order->GRI_OrderType) === "227001") {
return $this->push_tour($order);
return $this->push_tour($order, strval($order->GRI_OrderType));
}
return "[Tulanduo>order_push] No function match. ";
@ -100,13 +99,14 @@ class Tulanduo
/*!
* 发送线路订单计划
*/
public function push_tour($vas=null)
public function push_tour($vas=null, $gri_ordertype='227001')
{
$gri_sn = $vas->GRI_SN;
$vas_sn = $vas->VAS_SN;
$vei_sn = $vas->VAS_VEI_SN;
$grd_info = $this->ci->Group_model->get_vendor_plan_info($gri_sn, $vei_sn);
if (empty($grd_info)) {
$this->ci->Group_model->set_plan_received($vas_sn);
return false;
}
$guestlist = $this->ci->orders_model->get_customer_list($gri_sn);
@ -188,7 +188,7 @@ class Tulanduo
$agcOrderNo .= "(" . $vas->operator . ")";
}
$first_date = $vo['details'][0]->day_no_raw;
$last_date = count($vo['details'])-1;
$last_date = COUNT($vo['details'])-1;
$end_date = $vo['details'][$last_date]->day_no_raw;
$this->ci->tldOrderBuilder->resetBizContent();
$this->ci->tldOrderBuilder->setUserId($userId)
@ -203,7 +203,7 @@ class Tulanduo
->setTravelDate($first_date)
->setLeavedDate($end_date)
// ->setOrderRemark($order_remark) // 订单备注 TODO:
->setRoomStandard($request_info->GCI_HotelRequest) // 住房标准
// ->setRoomStandard($request_info->GCI_HotelRequest) // 住房标准
->setRouteStandard($request_info->GCI_Request) // 行程服务标准
;
foreach ($guestlist as $key => $vg) {
@ -352,12 +352,31 @@ log_message('error',$resp);
return $ret;
}
/*!
* @Author: LYT
* @Date: 2019-06-04 11:47:38
* @Desc: 发送商务订单计划
*/
public function push_biz($vas=null, $gri_ordertype='227002')
{
$gri_sn = $vas->GRI_SN;
$vas_sn = $vas->VAS_SN;
$vei_sn = $vas->VAS_VEI_SN;
$grd_info = $this->ci->Group_model->get_vendor_plan_info($gri_sn, $vei_sn);
if (empty($grd_info)) {
$this->ci->Group_model->set_plan_received($vas_sn);
return false;
}
$COLD_SN_str = implode(',', array_map( function($element){return $element->GRD_COLD_SN;}, $grd_info )) ;
$all_colds = $this->ci->BIZ_order->get_all_cold($COLD_SN_str);
return false;
}
/*!
* 发送目的地项目组预订计划到图兰朵地接系统
*/
public function push_trippest($vas=null)
{
return false; // test: push_tour
/** 目的地 */
$userId = $this->send_host["30"]["userId"];
$userKey = $this->send_host["30"]["key"];

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save