From 02e1a689b7d6720a1cf11b1624f233d262107496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Thu, 30 Oct 2025 11:04:04 +0800 Subject: [PATCH] =?UTF-8?q?CT=E7=BA=BF=E8=B7=AF=E5=85=A5=E5=BA=93=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=BC=98=E5=8C=96=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=A4=A9?= =?UTF-8?q?=E6=95=B0=E5=8F=8A=E5=9F=8E=E5=B8=82=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 11 +++++++++- .../ctmobilefirst/controllers/api.php | 20 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index b2c84337..73b52844 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -3304,10 +3304,19 @@ class Information extends CI_Controller { $tourdata = json_decode(GET_HTTP($apiurl . "/thirdparty/ctmobilefirst/api/getCliSn/?param=" . $productCode)); $data["clisn"] = $tourdata->clisn; + $tourdetail = json_decode(GET_HTTP($apiurl . "/thirdparty/ctmobilefirst/api/getTourDetail/?param=" . $productCode)); + if ($tourdetail->status =="ok"){ + $tourDays = $tourdetail->data->CLI_Days; + $tourPassCity = $tourdetail->data->CLI2_PassCity; + }else{ + $tourDays = 0; + $tourPassCity = ""; + } + //调取模板 $dataform["TourCode"] = $productCode; $dataform["CLI_SN"] = $tourdata->clisn; - $dataform["TourName"] = $information->ic_title; + $dataform["TourName"] = $tourDays." Days ".$information->ic_title." (".$tourPassCity.")"; } diff --git a/application/third_party/ctmobilefirst/controllers/api.php b/application/third_party/ctmobilefirst/controllers/api.php index f01834e9..ba145a12 100644 --- a/application/third_party/ctmobilefirst/controllers/api.php +++ b/application/third_party/ctmobilefirst/controllers/api.php @@ -242,6 +242,26 @@ class Api extends CI_Controller { echo json_encode($result); } + /** + * 根据获取线路编码cli_no 获取对应产品的详细信息 + */ + public function getTourDetail(){ + if (isset($_GET["param"])){ + $param = $_GET["param"]; + $result["status"]="ok"; + $tour = $this->api_model->getTourDetail($param); + if ($tour!=null){ + $result["data"]=$tour; + }else{ + $result["status"]="no data"; + $result["data"]=[]; + } + }else{ + $result["status"]="no param"; + $result["data"]=[]; + } + echo json_encode($result); + } /** * @description: 一日游价格表