From 483dda454dbba3fbb446b603db44f7035cc97484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Tue, 2 Apr 2024 14:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=99=E6=B8=AF=EF=BC=8C=E5=8F=B0=E6=B9=BE?= =?UTF-8?q?=EF=BC=8C=E6=BE=B3=E9=97=A8=E4=B8=89=E5=9C=B0=E6=90=BA=E7=A8=8B?= =?UTF-8?q?=E5=87=BA=E7=A5=A8=E6=97=B6=EF=BC=8C=E5=9C=B0=E5=8C=BA=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=BC=A0CN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/trainsystem/controllers/addorders.php | 8 +++++++- gys_system/models/user_model.php | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/application/third_party/trainsystem/controllers/addorders.php b/application/third_party/trainsystem/controllers/addorders.php index 5bb18194..7d23b3bc 100644 --- a/application/third_party/trainsystem/controllers/addorders.php +++ b/application/third_party/trainsystem/controllers/addorders.php @@ -791,7 +791,13 @@ class addorders extends CI_Controller{ $passagersdata[$i]->contactMobile = ""; $passagersdata[$i]->contactEmail = ""; if (!empty($PassagerInfo->BPE_Nationality)){ - $passagersdata[$i]->regionCode = $PassagerInfo->BPE_Nationality; //国家简码 美国us ,中国cn + $regionCode = $PassagerInfo->BPE_Nationality; + if ($regionCode =="TW" || $regionCode=="HK" || $regionCode=="MO"){ + $passagersdata[$i]->regionCode = "CN"; + }else{ + $passagersdata[$i]->regionCode = $regionCode; //国家简码 美国us ,中国cn + } + } $i++; diff --git a/gys_system/models/user_model.php b/gys_system/models/user_model.php index 250b7dc5..ab3eb443 100644 --- a/gys_system/models/user_model.php +++ b/gys_system/models/user_model.php @@ -121,7 +121,7 @@ class User_model extends CI_Model { WHERE TGI2_TGI_SN = TGI_SN AND TGI2_LGC = 2 AND LEN(TGI2_Name) > 0 - AND TGI2_Name LIKE '23%' + AND TGI2_Name LIKE '24%' AND TGI_VEI_SN = ? ORDER BY TGI2_Name ASC