|
|
|
|
@ -86,11 +86,12 @@ class search extends CI_Controller{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(!empty(json_decode($search_return)->result)){
|
|
|
|
|
$this->BIZ_train_model->addOrUpdate($fromStation,$toStation,$search_return);
|
|
|
|
|
//$this->BIZ_train_model->addOrUpdate($fromStation,$toStation,$search_return);
|
|
|
|
|
$operate_data = $search_return;
|
|
|
|
|
}else{
|
|
|
|
|
$operate_data = null;
|
|
|
|
|
//添加缓存调用时间判断
|
|
|
|
|
if($this->differ_time <= 5){
|
|
|
|
|
/*if($this->differ_time <= 5){
|
|
|
|
|
$cache_train_info = NULL;
|
|
|
|
|
}else{
|
|
|
|
|
$cache_train_info = $this->BIZ_train_model->get_train_cache($fromStation,$toStation);
|
|
|
|
|
@ -113,7 +114,7 @@ class search extends CI_Controller{
|
|
|
|
|
$operate_data = $cache_train_info->tpc_content;
|
|
|
|
|
log_message('error','TRAIN 查询为空的链接:'.$this->url.'|出错的原因:'.$this->reason.'|调用缓存号:'.$cache_train_info->tpc_sn.'|缓存生成的时间:'.$cache_train_info->tpc_datetime);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
}
|
|
|
|
|
return $operate_data;
|
|
|
|
|
}
|
|
|
|
|
|