diff --git a/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php b/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php index c2eae1c7..5ada8b9e 100644 --- a/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php +++ b/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php @@ -8,29 +8,28 @@ class TulanduoApi extends CI_Controller public $special_route = array( "BJSIC-42" => "'BJSIC-41','BJSIC-42'" ,"BJSIC-43" => "'BJSIC-41','BJSIC-42','BJSIC-43'" + ,"XASIC-42" => "'XASIC-41','XASIC-42'" ); public $special_route_name = array( - "BJSIC-42" => "北京精品两日游(目的地)" - ,"BJSIC-43" => "北京精品三日游(目的地)" + "BJSIC-42" => "北京精品两日游(目的地BJSIC-42)" + ,"BJSIC-43" => "北京精品三日游(目的地BJSIC-43)" + ,"XASIC-42" => "西安精品两日游(目的地XASIC-42)" ); public $city_info = array( "北京分公司" => array( - "PlanVEI_SN" => 1343, - "COLI_sourcetype" => 32090, - "routeType" => "北京目的地线路", - "GRI_after" => "BJ" + "PlanVEI_SN" => 1343 + ,"COLI_sourcetype" => 32090 + ,"routeType" => "北京目的地线路" ), "西安分公司" => array( - "PlanVEI_SN" => 30548, - "COLI_sourcetype" => 32116, - "routeType" => "西安目的地线路", - "GRI_after" => "XA" + "PlanVEI_SN" => 30548 + ,"COLI_sourcetype" => 32116 + ,"routeType" => "西安目的地线路" ), "上海分公司" => array( - "PlanVEI_SN" => 29188, - "COLI_sourcetype" => 32112, - "routeType" => "上海目的地线路", - "GRI_after" => "SH" + "PlanVEI_SN" => 29188 + ,"COLI_sourcetype" => 32112 + ,"routeType" => "上海目的地线路" ) ); @@ -45,7 +44,7 @@ class TulanduoApi extends CI_Controller // public $neworder_url = "http://djb3c.ltsoftware.net:9921/action/api/addOrUpdateRouteOrder/"; // 发送到图兰朵系统接口的参数jsonParams - public $params; + // public $params; public function __construct(){ parent::__construct(); @@ -55,7 +54,7 @@ class TulanduoApi extends CI_Controller // $this->output->enable_profiler(TRUE); - $this->params = new stdClass(); + // $this->params = new stdClass(); /** test */ // $this->userId = "358"; // $this->key = "a08f26ddc5b1bd4c8e5eafcac28fc1ec"; @@ -127,6 +126,7 @@ class TulanduoApi extends CI_Controller $PAG_Code = $split_code[0] . "-" . $split_code[1]; isset($split_code[2]) ? $pag_sub=$split_code[2] : null; } + $PAG_Code = in_array($PAG_Code, array("SHALC-6","SHALC-7","SHALC-8","SHALC-9")) ? "SHSIC-45" : $PAG_Code; $serviceSN = $this->Orders_model->get_packageSN($PAG_Code); $COLD_MemoText = json_encode(array("Pick up"=>$vo['toTraffic'], "Drop off"=>$vo['backTraffic']));