修改国际火车

hotfix/远程访问多媒体中心
cyc 7 years ago
parent d374db070b
commit ddcd07305b

@ -361,6 +361,7 @@ class search extends CI_Controller{
$all_stations = $this->BIZ_intel_train_model->get_allstations(); $all_stations = $this->BIZ_intel_train_model->get_allstations();
$i = 0; $i = 0;
foreach($all_stations as $item){ foreach($all_stations as $item){
$rule_arr = $this->BIZ_intel_train_model->ch_train_rules($item->station_id);
if(!empty($rule_arr)){ if(!empty($rule_arr)){
$return_json['TrainList'][$i]['FromStation'] = $item->s_ename; $return_json['TrainList'][$i]['FromStation'] = $item->s_ename;
$return_json['TrainList'][$i]['FromCountry'] = $item->s_country; $return_json['TrainList'][$i]['FromCountry'] = $item->s_country;
@ -378,7 +379,7 @@ class search extends CI_Controller{
} }
//print_r($return_json); //print_r($return_json);
header('Content-type: application/json'); header('Content-type: application/json');
//print_r(json_encode($return_json)); print_r(json_encode($return_json));
} }
//获取国际火车出发规则 //获取国际火车出发规则

Loading…
Cancel
Save