From 12feb732bea67e32f0e4cd14a303677dc55d182d Mon Sep 17 00:00:00 2001 From: "altob.rd" Date: Fri, 24 Nov 2017 21:16:41 +0800 Subject: [PATCH] upd --- controllers/Cars.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/controllers/Cars.php b/controllers/Cars.php index 08e0b33..9f17096 100644 --- a/controllers/Cars.php +++ b/controllers/Cars.php @@ -49,14 +49,13 @@ class Cars extends CI_Controller error_reporting(E_ALL); } set_error_handler(array($this, 'error_handler'), E_ALL); // 資料庫異動需做log - - ignore_user_abort(); // 接受client斷線, 繼續run - - $method_name = $this->router->fetch_method(); + $method_name = $this->router->fetch_method(); $request_assoc = $this->uri->uri_to_assoc(3); trigger_error(__FUNCTION__ . '..' . $method_name. '..request start..' . print_r($request_assoc, true)); + ignore_user_abort(); // 接受client斷線, 繼續run + if(in_array($method_name, array( 'ipcam', 'ipcam_meta', 'check_lpr_etag',