|
|
|
@ -65,10 +65,11 @@ class Tuniu_train extends CI_Controller{
|
|
|
|
|
//print_r(json_decode($back_data));die();
|
|
|
|
|
$log_info = '';
|
|
|
|
|
|
|
|
|
|
if(isset(json_decode($back_data)->data)){
|
|
|
|
|
$tn_info = json_decode($back_data);
|
|
|
|
|
$retrun_code = $tn_info->returnCode;
|
|
|
|
|
$return_msg = $tn_info->errorMsg;
|
|
|
|
|
$tn_info = json_decode($back_data);
|
|
|
|
|
$retrun_code = $tn_info->returnCode;
|
|
|
|
|
$return_msg = $tn_info->errorMsg;
|
|
|
|
|
|
|
|
|
|
if(isset($tn_info->data)){
|
|
|
|
|
if(empty(json_decode($back_data)->data)){
|
|
|
|
|
$isCache = true;
|
|
|
|
|
}else{
|
|
|
|
@ -78,7 +79,6 @@ class Tuniu_train extends CI_Controller{
|
|
|
|
|
}else{
|
|
|
|
|
$isCache = true;
|
|
|
|
|
$log_info = 'tuniutrain 接口未响应|数据源:'.$fromStation.'|'.$toStation.'|'.$date.'|retrun_code'.$retrun_code.'|return_msg:'.$return_msg;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($isCache){
|
|
|
|
|