|
|
|
|
@ -347,12 +347,25 @@ class search extends CI_Controller{
|
|
|
|
|
|
|
|
|
|
//获取所有的列车信息
|
|
|
|
|
public function get_all_inteltrain(){
|
|
|
|
|
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');
|
|
|
|
|
|
|
|
|
|
$obj = $this->BIZ_intel_train_model->get_allinteltrain();
|
|
|
|
|
|
|
|
|
|
print_r(json_encode($obj));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取国际火车出发规则
|
|
|
|
|
public function get_station_rules(){
|
|
|
|
|
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');
|
|
|
|
|
|
|
|
|
|
//获取所有站点的列表
|
|
|
|
|
$return_json = array();
|
|
|
|
|
$return_json['TrainList'] = array();
|
|
|
|
|
@ -372,6 +385,7 @@ class search extends CI_Controller{
|
|
|
|
|
$i++;
|
|
|
|
|
}
|
|
|
|
|
//print_r($return_json);
|
|
|
|
|
header('Content-type: application/json');
|
|
|
|
|
print_r(json_encode($return_json));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|