This commit is contained in:
aozhiwei 2022-05-19 16:13:47 +08:00
parent b70e3baae8
commit 5672adb004

View File

@ -54,7 +54,7 @@ class BaseController {
public function _getZid()
{
$net = getReqVal('_net', '');
$zid = $net && count($net) > 3 ? $net[2] : 3;
$zid = $net && strlen($net) > 3 ? $net[2] : 3;
return ($zid >= 1 && $zid <= 4) ? $zid : 3;
}