diff --git a/application/third_party/trainsystem/controllers/addorders.php b/application/third_party/trainsystem/controllers/addorders.php index 7adba09d..7f122aa8 100644 --- a/application/third_party/trainsystem/controllers/addorders.php +++ b/application/third_party/trainsystem/controllers/addorders.php @@ -899,11 +899,14 @@ class addorders extends CI_Controller{ $add_data->ts_autotimes = $countAuto->countauto + 1; //出票次数+1 $add_data->lanhaiData = ""; //途牛默认澜海数据为空 + // print_r(json_encode($PostData)); + // die(); + + //存储到数据库 $this->train_system_model->add_orders($add_data); - // print_r(json_encode($PostData)); - // die(); + $ResponseJson = GetPost_http($url,json_encode($PostData,JSON_UNESCAPED_UNICODE),'json'); $ResponseData = json_decode($ResponseJson); diff --git a/application/third_party/trainsystem/helpers/train_helper.php b/application/third_party/trainsystem/helpers/train_helper.php index 2cb78011..7f93c8be 100644 --- a/application/third_party/trainsystem/helpers/train_helper.php +++ b/application/third_party/trainsystem/helpers/train_helper.php @@ -36,7 +36,7 @@ function strexchangeid($name){ function chk_sp_name($name){ $name = str_replace( array('á','ë','é','è','í','ó','ú','ű','ñ','á','é','í','ó','ö','ú','ű','ñ','/',',',' '), - array('a','e','e','e','i','o','u','u','n','A','E','I','o','o','U','U','N','','',''), + array('a','e','e','e','i','o','u','u','n','A','E','I','o','o','U','U','N','','',' '), $name ); return trim(substr(strtoupper($name),0,50));