|
|
|
@ -72,13 +72,13 @@ class Tuniu_train extends CI_Controller{
|
|
|
|
|
if(isset($tn_info->data)){
|
|
|
|
|
if(empty(json_decode($back_data)->data)){
|
|
|
|
|
$isCache = true;
|
|
|
|
|
$log_info = 'tuniutrain data缺失|数据源:'.$fromStation.'|'.$toStation.'|'.$date.'|retrun_code:'.$retrun_code.'|return_msg:'.$return_msg;
|
|
|
|
|
}else{
|
|
|
|
|
$this->tuniuprice_model->addOrUpdate($fromStation,$toStation,$back_data);
|
|
|
|
|
}
|
|
|
|
|
$log_info = 'tuniutrain 查询数据:'.$fromStation.'|'.$toStation.'|'.$date.'|retrun_code:'.$retrun_code.'|return_msg:'.$return_msg;
|
|
|
|
|
}else{
|
|
|
|
|
$isCache = true;
|
|
|
|
|
$log_info = 'tuniutrain 接口未响应|数据源:'.$fromStation.'|'.$toStation.'|'.$date.'|retrun_code'.$retrun_code.'|return_msg:'.$return_msg;
|
|
|
|
|
$log_info = 'tuniutrain 接口未响应|数据源:'.$fromStation.'|'.$toStation.'|'.$date.'|retrun_code:'.$retrun_code.'|return_msg:'.$return_msg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($isCache){
|
|
|
|
|