diff --git a/controllers/Cars.php b/controllers/Cars.php index ba53543..a478b40 100644 --- a/controllers/Cars.php +++ b/controllers/Cars.php @@ -268,6 +268,19 @@ http://192.168.10.201/cars.html/ipcam/sno/12119/ivsno/0/io/O/type/C/lpr/4750YC/c exit; } + /* + 出入口 + + 說明: 特殊方式進出註記 (ex. 悠遊卡) + */ + public function ipcam_meta() + { + $parms = $this->uri->uri_to_assoc(3); + $parms['lpr'] = urldecode($parms['lpr']); // 中文車牌 + $this->cars_model->ipcam_meta($parms); + } + + /* public function test_now() { echo date('Y-m-d H:i:s'); @@ -277,5 +290,6 @@ http://192.168.10.201/cars.html/ipcam/sno/12119/ivsno/0/io/O/type/C/lpr/4750YC/c { phpinfo(); } + */ } diff --git a/models/Cars_model.php b/models/Cars_model.php index abce231..8fae381 100644 --- a/models/Cars_model.php +++ b/models/Cars_model.php @@ -24,6 +24,12 @@ class Cars_model extends CI_Model { $this->vars = $vars; } + + // 特殊方式進出註記 + public function ipcam_meta($parms) + { + trigger_error(__FUNCTION__ . '|特殊註記:' . print_r($parms, true)); + } // 車輛進出傳入車牌號碼 (2016/07/27) public function opendoor_lprio($parms)