From c17e33b382c529f97d03c1ab623f6361bb07c2a4 Mon Sep 17 00:00:00 2001 From: "altob.rd" Date: Mon, 16 Oct 2017 15:52:20 +0800 Subject: [PATCH] upd --- controllers/Pks.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controllers/Pks.php b/controllers/Pks.php index 6bec435..f580951 100644 --- a/controllers/Pks.php +++ b/controllers/Pks.php @@ -201,9 +201,8 @@ class Pks extends CI_Controller $parms = $this->uri->uri_to_assoc(3); // 調整 pksno 為 pks 格式 - if (strpos($test_string, 'B') !== false) { + if (strpos($test_string, 'B') !== false) $parms['pksno'] = '9' . intval(preg_replace('/[^0-9\-]/', '', $test_string)); // 地下 B - } else $parms['pksno'] = intval(preg_replace('/[^0-9\-]/', '', $test_string));