|
|
|
@ -67,16 +67,8 @@ class Tulanduo extends CI_Controller
|
|
|
|
|
$this->vendor_ids = $this->trippest->tulanduo_vei_sn;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function order_push($GRI_SN=0)
|
|
|
|
|
public function order_push($order=null)
|
|
|
|
|
{
|
|
|
|
|
$start_date = date('Y-m-d');
|
|
|
|
|
$end_date = date('Y-m-d 23:59:59', strtotime("+2 months"));
|
|
|
|
|
$vei_sn_str = implode(",", $this->vendor_ids);
|
|
|
|
|
$ready_to_send = $this->Group_model->get_plan_not_received(1, $vei_sn_str, $GRI_SN, $start_date, $end_date);
|
|
|
|
|
if (empty($ready_to_send)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$order = $ready_to_send[0];
|
|
|
|
|
// 目的地计划
|
|
|
|
|
if (strval($order->GRI_OrderType) === "227002" && strval($order->department) === "30") {
|
|
|
|
|
return $this->push_trippest($order);
|
|
|
|
@ -88,8 +80,7 @@ class Tulanduo extends CI_Controller
|
|
|
|
|
if (strval($order->GRI_OrderType) === "227001") {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $this->output->set_output("not trippest");
|
|
|
|
|
// return $this->output->set_content_type('application/json')->set_output(json_encode($order));
|
|
|
|
|
return "[Tulanduo>order_push] No function match. ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
@ -99,8 +90,8 @@ class Tulanduo extends CI_Controller
|
|
|
|
|
*/
|
|
|
|
|
public function push_trippest($vas=null)
|
|
|
|
|
{
|
|
|
|
|
// exit();
|
|
|
|
|
/** 目的地 test */
|
|
|
|
|
return "[Tulanduo>push_trippest] Done. ";
|
|
|
|
|
/** 目的地 */
|
|
|
|
|
$userId = $this->send_host["30"]["userId"];
|
|
|
|
|
$userKey = $this->send_host["30"]["key"];
|
|
|
|
|
|
|
|
|
@ -116,7 +107,7 @@ class Tulanduo extends CI_Controller
|
|
|
|
|
$change_info = str_replace("\n", "<br>", $change_info);
|
|
|
|
|
$vei_sn_str = implode(",", $this->vendor_ids);
|
|
|
|
|
$orderinfo = $this->BIZ_order->get_orderinfo_detail($gri_sn, $vei_sn_str);
|
|
|
|
|
if(empty($orderinfo)) {return;}
|
|
|
|
|
if(empty($orderinfo)) {return "[Tulanduo>push_trippest] Not found order detail. ";}
|
|
|
|
|
$COLI_ID = $orderinfo[0]->COLI_ID;
|
|
|
|
|
$set_pvt = strval($orderinfo[0]->COLI_PVT);
|
|
|
|
|
$travelFees = $this->BIZ_order->get_paymentDetails($COLI_ID);
|
|
|
|
@ -372,8 +363,7 @@ class Tulanduo extends CI_Controller
|
|
|
|
|
$this->Group_model->set_plan_received($vas_sn);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
echo "Order Push done.";
|
|
|
|
|
return;
|
|
|
|
|
return "Order Push done. ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function tourguide_update($input, $vps, $eva)
|
|
|
|
|