|
|
|
@ -16,29 +16,29 @@ class Tulanduo
|
|
|
|
|
$this->userId = "18";
|
|
|
|
|
$this->key = "d05c25e6e6c5d4898161e0aaf700d9c7";
|
|
|
|
|
*/
|
|
|
|
|
private $send_host = array(
|
|
|
|
|
"30" => array(
|
|
|
|
|
"userId" => 1134
|
|
|
|
|
,"key" => "73d180d05d425fd192e1c5b3097e75ff"
|
|
|
|
|
)
|
|
|
|
|
,"1" => array(
|
|
|
|
|
"userId" => 18
|
|
|
|
|
,"key" => "d05c25e6e6c5d4898161e0aaf700d9c7"
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
/*!
|
|
|
|
|
* test
|
|
|
|
|
*/
|
|
|
|
|
// private $send_host = array(
|
|
|
|
|
// "30" => array(
|
|
|
|
|
// "userId" => 6035
|
|
|
|
|
// ,"key" => "3bd16efd5f4165378f144da1f4829996"
|
|
|
|
|
// "userId" => 1134
|
|
|
|
|
// ,"key" => "73d180d05d425fd192e1c5b3097e75ff"
|
|
|
|
|
// )
|
|
|
|
|
// ,"1" => array(
|
|
|
|
|
// "userId" => 6035
|
|
|
|
|
// ,"key" => "3bd16efd5f4165378f144da1f4829996"
|
|
|
|
|
// "userId" => 18
|
|
|
|
|
// ,"key" => "d05c25e6e6c5d4898161e0aaf700d9c7"
|
|
|
|
|
// )
|
|
|
|
|
// );
|
|
|
|
|
/*!
|
|
|
|
|
* test
|
|
|
|
|
*/
|
|
|
|
|
private $send_host = array(
|
|
|
|
|
"30" => array(
|
|
|
|
|
"userId" => 6035
|
|
|
|
|
,"key" => "3bd16efd5f4165378f144da1f4829996"
|
|
|
|
|
)
|
|
|
|
|
,"1" => array(
|
|
|
|
|
"userId" => 6035
|
|
|
|
|
,"key" => "3bd16efd5f4165378f144da1f4829996"
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// userId key
|
|
|
|
|
// 1343 2e47c3721e3ff6e816fe6b928d7acc7d
|
|
|
|
@ -46,13 +46,13 @@ class Tulanduo
|
|
|
|
|
// 30548 9db75a2dc17156eb122364295804b7a2
|
|
|
|
|
|
|
|
|
|
// test
|
|
|
|
|
// public $list_url = "http://ltdj.ltsoftware.net:19919/action/api/searchRouteOrder/";
|
|
|
|
|
// public $detail_url = "http://ltdj.ltsoftware.net:19919/action/api/detailRouteOrder/";
|
|
|
|
|
// public $neworder_url = "http://ltdj.ltsoftware.net:19919/action/api/addOrUpdateRouteOrder/";
|
|
|
|
|
public $list_url = "http://ltdj.ltsoftware.net:19919/action/api/searchRouteOrder/";
|
|
|
|
|
public $detail_url = "http://ltdj.ltsoftware.net:19919/action/api/detailRouteOrder/";
|
|
|
|
|
public $neworder_url = "http://ltdj.ltsoftware.net:19919/action/api/addOrUpdateRouteOrder/";
|
|
|
|
|
// Live
|
|
|
|
|
public $list_url = "http://djb3c.ltsoftware.net:9921/action/api/searchRouteOrder/";
|
|
|
|
|
public $detail_url = "http://djb3c.ltsoftware.net:9921/action/api/detailRouteOrder/";
|
|
|
|
|
public $neworder_url = "http://djb3c.ltsoftware.net:9921/action/api/addOrUpdateRouteOrder/";
|
|
|
|
|
// public $list_url = "http://djb3c.ltsoftware.net:9921/action/api/searchRouteOrder/";
|
|
|
|
|
// public $detail_url = "http://djb3c.ltsoftware.net:9921/action/api/detailRouteOrder/";
|
|
|
|
|
// public $neworder_url = "http://djb3c.ltsoftware.net:9921/action/api/addOrUpdateRouteOrder/";
|
|
|
|
|
|
|
|
|
|
public function __construct(){
|
|
|
|
|
$this->ci =& get_instance();
|
|
|
|
@ -78,12 +78,10 @@ class Tulanduo
|
|
|
|
|
}
|
|
|
|
|
// 商务
|
|
|
|
|
if (strval($order->GRI_OrderType) === "227002") {
|
|
|
|
|
return false; // for Trippest deploy
|
|
|
|
|
return $this->push_tour($order);
|
|
|
|
|
}
|
|
|
|
|
// 传统订单
|
|
|
|
|
if (strval($order->GRI_OrderType) === "227001") {
|
|
|
|
|
return false; // for Trippest deploy
|
|
|
|
|
return $this->push_tour($order);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -96,7 +94,6 @@ class Tulanduo
|
|
|
|
|
*/
|
|
|
|
|
public function push_tour($vas=null)
|
|
|
|
|
{
|
|
|
|
|
return false; // for Trippest deploy
|
|
|
|
|
$userId = $this->send_host["1"]["userId"];
|
|
|
|
|
$userKey = $this->send_host["1"]["key"];
|
|
|
|
|
$gri_sn = $vas->GRI_SN;
|
|
|
|
@ -171,25 +168,25 @@ class Tulanduo
|
|
|
|
|
foreach ($all_date as $kd => $vd) {
|
|
|
|
|
if ( ! in_array($vd, $real_date)) {
|
|
|
|
|
$this->ci->tldOrderBuilder->setScheduleDetailsTitle($kd, "无")
|
|
|
|
|
->setScheduleDetailsContent($kd, "无")
|
|
|
|
|
->setScheduleDetailsAccommodation($kd, "")
|
|
|
|
|
// ->setScheduleDetailsTraffic($kd, ($vso->PAG_Vehicle>60001 ? 1 : 0))
|
|
|
|
|
->setScheduleDetailsBreakFirst($kd, 0 )
|
|
|
|
|
->setScheduleDetailsDinner($kd, 0)
|
|
|
|
|
->setScheduleDetailsLunch($kd, 0)
|
|
|
|
|
;
|
|
|
|
|
->setScheduleDetailsContent($kd, "无")
|
|
|
|
|
->setScheduleDetailsAccommodation($kd, "")
|
|
|
|
|
// ->setScheduleDetailsTraffic($kd, ($vso->PAG_Vehicle>60001 ? 1 : 0))
|
|
|
|
|
->setScheduleDetailsBreakFirst($kd, 0 )
|
|
|
|
|
->setScheduleDetailsDinner($kd, 0)
|
|
|
|
|
->setScheduleDetailsLunch($kd, 0)
|
|
|
|
|
;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
foreach ($grd_info as $kgrd => $vgrd) {
|
|
|
|
|
if ($vd==$vgrd->day_no_raw) {
|
|
|
|
|
$this->ci->tldOrderBuilder->setScheduleDetailsTitle($kd, $vgrd->GRD_OrderDate)
|
|
|
|
|
->setScheduleDetailsContent($kd, $vgrd->GRD_Landscape)
|
|
|
|
|
->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 ))
|
|
|
|
|
;
|
|
|
|
|
->setScheduleDetailsContent($kd, $vgrd->GRD_Landscape)
|
|
|
|
|
->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 ))
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -555,7 +552,6 @@ log_message('error',$resp);
|
|
|
|
|
|
|
|
|
|
public function tourguide_update($input, $vps, $eva)
|
|
|
|
|
{
|
|
|
|
|
return false; // for Trippest deploy
|
|
|
|
|
$ret['status'] = -1;
|
|
|
|
|
$ret['err'] = 100;
|
|
|
|
|
$ret['errMsg'] = "未知错误";
|
|
|
|
@ -629,7 +625,6 @@ log_message('error',$resp);
|
|
|
|
|
*/
|
|
|
|
|
public function order_change()
|
|
|
|
|
{
|
|
|
|
|
return false; // for Trippest deploy
|
|
|
|
|
$this->load->model('Order_update');
|
|
|
|
|
$ret['status'] = -1;
|
|
|
|
|
$ret['errMsg'] = "未知错误";
|
|
|
|
@ -693,7 +688,6 @@ log_message('error',$resp);
|
|
|
|
|
return $this->output->set_content_type('application/json')->set_output(json_encode($ret));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private function excute_curl($url, $content_builder)
|
|
|
|
|
{
|
|
|
|
|
$ch = curl_init();
|
|
|
|
|