adminId() || !$request->adminInfo()) throw new AuthException(ApiErrorCode::ERR_ADMINID_VOID); if ($request->adminInfo()['level']) { AuthRepository::verifiAuth($request); } return $next($request); } }