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;