request->param('userInfo/a', null); } } if (!$userCache) { throw new \Exception('未授权访问,缺少有效的身份凭证', 401); } return ($column !== null && $column !== '') ? ($userCache[$column] ?? null) : $userCache; } }