|
|
|
|
@ -215,8 +215,7 @@ class search extends CI_Controller{
|
|
|
|
|
header('Access-Control-Max-Age:0');
|
|
|
|
|
header('Access-Control-Allow-Headers:x-requested-with, Content-Type');
|
|
|
|
|
header('Access-Control-Allow-Credentials:true');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$json = file_get_contents('php://input');
|
|
|
|
|
|
|
|
|
|
if(empty($json)){
|
|
|
|
|
@ -326,6 +325,12 @@ class search extends CI_Controller{
|
|
|
|
|
|
|
|
|
|
//查询某一趟列车的途径站
|
|
|
|
|
public function search_train_station($train_no){
|
|
|
|
|
header('Access-Control-Allow-Origin:*');
|
|
|
|
|
header('Access-Control-Allow-Methods:POST, GET');
|
|
|
|
|
header('Access-Control-Max-Age:0');
|
|
|
|
|
header('Access-Control-Allow-Headers:x-requested-with, Content-Type');
|
|
|
|
|
header('Access-Control-Allow-Credentials:true');
|
|
|
|
|
|
|
|
|
|
if(!$train_no){
|
|
|
|
|
header("HTTP/1.1 404 Not Found");
|
|
|
|
|
exit('{"status":"404","reason":"列车编号为空"}');
|
|
|
|
|
|