From 29f8cb48504e7f690b026d9f345fd2449c9a0929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Tue, 17 Mar 2026 09:38:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=81=AB=E8=BD=A6=E5=88=87=E6=8D=A2=E6=90=BA?= =?UTF-8?q?=E7=A8=8B2.0=E6=96=B0=E6=8E=A5=E5=8F=A3=E3=80=8220260317?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/trainsystem/controllers/addorders.php | 3 ++- .../third_party/trainsystem/controllers/callback.php | 8 ++++++-- .../trainsystem/controllers/innerTrainSearch.php | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/application/third_party/trainsystem/controllers/addorders.php b/application/third_party/trainsystem/controllers/addorders.php index 9067770b..fd5471a0 100644 --- a/application/third_party/trainsystem/controllers/addorders.php +++ b/application/third_party/trainsystem/controllers/addorders.php @@ -423,7 +423,8 @@ class addorders extends CI_Controller{ $this->tuniuModel($data,$selectseat,$cold_sn); break; case 'ctrip': - $this->ctripModel($data,$selectseat,$cold_sn); + //$this->ctripModel($data,$selectseat,$cold_sn); + $this->shuntuModel($data,$selectseat,$cold_sn); //20260317切换携程2.0新接口 break; case 'lanhai': $this->lanhaiModel($data,$selectseat,$cold_sn,$bpe_sn); //澜海多传用户SN列表 diff --git a/application/third_party/trainsystem/controllers/callback.php b/application/third_party/trainsystem/controllers/callback.php index c1e58ec2..fba009e6 100644 --- a/application/third_party/trainsystem/controllers/callback.php +++ b/application/third_party/trainsystem/controllers/callback.php @@ -169,7 +169,7 @@ class callback extends CI_Controller{ } ///回调地址:http://www.mycht.cn/info.php/apps/trainsystem/callback/shuntucallback/ - public function shuntucallback(){ + public function shuntucallback_old(){ $back_json = file_get_contents('php://input'); log_message('error','携程顺途回调信息:'.$back_json); @@ -518,7 +518,11 @@ class callback extends CI_Controller{ } ///回调地址:http://www.mycht.cn/info.php/apps/trainsystem/callback/shuntucallback2025/ - public function shuntucallback2025(){ + /** + * //20260317切换携程2.0新接口,改为shuntucallback,旧的改为old + * ///回调地址:http://www.mycht.cn/info.php/apps/trainsystem/callback/shuntucallback/ + */ + public function shuntucallback(){ $back_json = file_get_contents('php://input'); log_message('error','顺途2回调信息:'.$back_json); diff --git a/application/third_party/trainsystem/controllers/innerTrainSearch.php b/application/third_party/trainsystem/controllers/innerTrainSearch.php index 654f4c92..bd3d3219 100644 --- a/application/third_party/trainsystem/controllers/innerTrainSearch.php +++ b/application/third_party/trainsystem/controllers/innerTrainSearch.php @@ -48,7 +48,7 @@ class innerTrainSearch extends CI_Controller{ $this->ShunTuApi($date,$from,$to); break; default : - $this->NewCtripApi($date,$from,$to); + $this->ShunTuApi($date,$from,$to); break; } }