From 4451eca488d3b6ba78390d1df074e74527713816 Mon Sep 17 00:00:00 2001 From: cyc Date: Tue, 31 Oct 2017 10:19:07 +0800 Subject: [PATCH] no message --- application/third_party/train/controllers/search.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/third_party/train/controllers/search.php b/application/third_party/train/controllers/search.php index 18109911..610799df 100644 --- a/application/third_party/train/controllers/search.php +++ b/application/third_party/train/controllers/search.php @@ -16,6 +16,10 @@ class search extends CI_Controller{ }else{ $url = 'http://op.juhe.cn/trainTickets/ticketsAvailable?key='.JUHE_TRAIN_API_KEY.'&train_date='.$train_date.'&from_station='.$fromStation.'&to_station='.$toStation; $back_data = $this->get_http($url); + + if(empty(json_decode($back_data)->result)){ + log_message('error','juhetrain:'.$url); + } //print_r(json_decode($back_data)); $return_data = new stdClass(); $return_data->httpstatus = 200;