From 43db298b014cb1bd5c264489bfde03908f67bfbe Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 7 Apr 2023 21:55:41 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseController.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)