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']);