|
|
|
|
@ -312,6 +312,7 @@ class search extends CI_Controller{
|
|
|
|
|
print_r(json_encode($return_json));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取某一条列车的信息
|
|
|
|
|
public function search_one_train($train_no){
|
|
|
|
|
$obj = $this->BIZ_intel_train_model->get_one_train($train_no);
|
|
|
|
|
$seat_code = json_decode($obj->seatPriceInfo2)->price;
|
|
|
|
|
@ -323,6 +324,22 @@ class search extends CI_Controller{
|
|
|
|
|
print_r(json_encode($obj));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查询某一趟列车的途径站
|
|
|
|
|
public function search_train_station($train_no){
|
|
|
|
|
if(!$train_no){
|
|
|
|
|
header("HTTP/1.1 404 Not Found");
|
|
|
|
|
exit('{"status":"404","reason":"列车编号为空"}');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$arr = $this->BIZ_intel_train_model->get_train_station($train_no);
|
|
|
|
|
if(!empty($arr)){
|
|
|
|
|
return json_decode($arr);
|
|
|
|
|
}else{
|
|
|
|
|
header("HTTP/1.1 404 Not Found");
|
|
|
|
|
exit('{"status":"404","reason":"途径站为空"}');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取价格(废弃)
|
|
|
|
|
/*
|
|
|
|
|
|