diff --git a/webapp/controller/BaseController.class.php b/webapp/controller/BaseController.class.php index 316feccf..7376f0fa 100644 --- a/webapp/controller/BaseController.class.php +++ b/webapp/controller/BaseController.class.php @@ -53,8 +53,9 @@ class BaseController { public function _getZid() { $net = getReqVal('_net', ''); - $zid = $net && strlen($net) > 3 ? $net[2] : 3; - return ($zid >= 1 && $zid <= 8) ? $zid : 3; + $values = explode('-', $net); + $zid = $values[1]; + return substr($zid, 1); } public function _rspErr($errcode, $errmsg)