From 91f6a12fba556e2ba904b4e5cc5af14007331a26 Mon Sep 17 00:00:00 2001 From: QxQ Date: Tue, 15 Jan 2019 14:16:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=A7=91=E5=8D=9A=E9=A4=A8?= =?UTF-8?q?=E8=A5=BF=E5=B1=AF=E7=AB=99=E6=90=9C=E5=B0=8B=E9=82=8F=E8=BC=AF?= =?UTF-8?q?=E5=B0=8E=E8=87=B4=E5=8C=97=E8=BB=8A=E9=82=8F=E8=BC=AF=E7=95=B0?= =?UTF-8?q?=E5=B8=B8=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/Carpayment_model.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/models/Carpayment_model.php b/models/Carpayment_model.php index 32b2c54..0e5e72b 100644 --- a/models/Carpayment_model.php +++ b/models/Carpayment_model.php @@ -385,10 +385,19 @@ class Carpayment_model extends CI_Model // 取得圖檔路徑 function gen_in_pic_path($cario) { - // 北車西上特例 - $station_local_ip = ($cario['station_no'] == 12304)? '192.168.10.203' : STATION_LOCAL_IP; - //科博館新建特例 - $station_local_ip = ($cario['station_no'] == 40709)? '192.168.9.201' : STATION_LOCAL_IP; + //北車西上特例 + if($cario['station_no'] == 12304) + { + $station_local_ip = '192.168.10.203'; + }//科博西屯特例 + else if($cario['station_no'] == 40709) + { + $station_local_ip = '192.168.9.201'; + } + else + { + $station_local_ip = STATION_LOCAL_IP; + } if(!empty($cario['in_pic_name'])) { $pic_name_arr = explode('-', $cario['in_pic_name']);