|
|
@ -21,8 +21,11 @@ class search extends CI_Controller{
|
|
|
|
if(empty(json_decode($back_data)->result)){
|
|
|
|
if(empty(json_decode($back_data)->result)){
|
|
|
|
log_message('error','juhetrain:'.$url.' '.$back_data);
|
|
|
|
log_message('error','juhetrain:'.$url.' '.$back_data);
|
|
|
|
$obj = $this->BIZ_train_model->get_train_info($fromStation,$toStation);
|
|
|
|
$obj = $this->BIZ_train_model->get_train_info($fromStation,$toStation);
|
|
|
|
|
|
|
|
if($obj){
|
|
|
|
$back_data = $obj->tpc_content;
|
|
|
|
$back_data = $obj->tpc_content;
|
|
|
|
log_message('error','Sn:'.$obj->tpc_sn.'|time:'.$obj->tpc_datetime);
|
|
|
|
log_message('error','Sn:'.$obj->tpc_sn.'|time:'.$obj->tpc_datetime);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$this->BIZ_train_model->addOrUpdate($fromStation,$toStation,$back_data);
|
|
|
|
$this->BIZ_train_model->addOrUpdate($fromStation,$toStation,$back_data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|