From ddcd07305b550379ff4cc57615ce5087269da570 Mon Sep 17 00:00:00 2001 From: cyc Date: Tue, 4 Sep 2018 16:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BD=E9=99=85=E7=81=AB?= =?UTF-8?q?=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/third_party/train/controllers/search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/third_party/train/controllers/search.php b/application/third_party/train/controllers/search.php index 1b553255..0320d5ed 100644 --- a/application/third_party/train/controllers/search.php +++ b/application/third_party/train/controllers/search.php @@ -361,6 +361,7 @@ class search extends CI_Controller{ $all_stations = $this->BIZ_intel_train_model->get_allstations(); $i = 0; foreach($all_stations as $item){ + $rule_arr = $this->BIZ_intel_train_model->ch_train_rules($item->station_id); if(!empty($rule_arr)){ $return_json['TrainList'][$i]['FromStation'] = $item->s_ename; $return_json['TrainList'][$i]['FromCountry'] = $item->s_country; @@ -378,7 +379,7 @@ class search extends CI_Controller{ } //print_r($return_json); header('Content-type: application/json'); - //print_r(json_encode($return_json)); + print_r(json_encode($return_json)); } //获取国际火车出发规则