getAttr('password_hash') ?? ''); } public static function getRoles() { return [ self::ROLE_ADMIN => '管理员', self::ROLE_VIEWER => '查看员', ]; } }