<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Auth; use ModStart\Core\Util\ConvertUtil; use Module\Member\Util\MemberGroupUtil; use Module\Member\Util\MemberVipUtil; class MemberGroup { public static function get($UtKOH = null, $MVKFM = null) { goto iZTpo; lJkw3: if (null === $x8iLp) { $x8iLp = MemberGroupUtil::getMemberGroup(MemberUser::user()); } goto mjUVj; mjUVj: if (null !== $UtKOH) { return $x8iLp ? $x8iLp[$UtKOH] : $MVKFM; } goto wVjAn; iZTpo: static $x8iLp = null; goto lJkw3; wVjAn: return $x8iLp; goto pPTdt; pPTdt: } public static function isDefault() { return self::get('isDefault', false); } public static function id() { return self::get('id', 0); } public static function inGroupIds($vfJTs) { return self::is($vfJTs); } public static function is($vfJTs) { goto tN2Fn; Z073C: $ULYbu = self::get('id'); goto gOsua; gOsua: if (empty($ULYbu)) { return false; } goto zHDBg; tN2Fn: if (!is_array($vfJTs)) { $vfJTs = ConvertUtil::toArray($vfJTs); } goto Z073C; zHDBg: return in_array($ULYbu, $vfJTs); goto EwZxK; EwZxK: } }