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