From 6d6c444002cb3e4a7afdc77e330ec5cc158bb8c2 Mon Sep 17 00:00:00 2001 From: LEE Wei Cheng Date: Fri, 20 Oct 2023 16:50:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A4=8D=E7=89=A9=E5=9C=92?= =?UTF-8?q?=E5=A4=A7=E5=AE=A2=E8=BB=8A=E4=BB=A3=E7=A2=BC1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/Carpayment_model.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/models/Carpayment_model.php b/models/Carpayment_model.php index 3a36564..5b2b5ee 100644 --- a/models/Carpayment_model.php +++ b/models/Carpayment_model.php @@ -459,7 +459,14 @@ class Carpayment_model extends CI_Model } else if($cario['station_no'] == 40704) { - return 1; + if(substr($cario['in_out'], 0, 1) === 'C') + { + return 1; // 1: 植物園 (一般車) + } + else + { + return 2; // 2: 植物園平面 (大客車) + } } return 1; // 預設值