<?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($rY0hM = null, $eJPg3 = null) { goto th01s; gqdbs: return $my0D9; goto WvXYn; s1Fje: if (null !== $rY0hM) { return $my0D9 ? $my0D9[$rY0hM] : $eJPg3; } goto gqdbs; JyZjn: if (null === $my0D9) { $my0D9 = MemberGroupUtil::getMemberGroup(MemberUser::user()); } goto s1Fje; th01s: static $my0D9 = null; goto JyZjn; WvXYn: } public static function isDefault() { return self::get('isDefault', false); } public static function id() { return self::get('id', 0); } public static function inGroupIds($Vf2LG) { return self::is($Vf2LG); } public static function is($Vf2LG) { goto Us90n; XXLI8: if (empty($M3rBS)) { return false; } goto UHHuM; dMtb0: $M3rBS = self::get('id'); goto XXLI8; UHHuM: return in_array($M3rBS, $Vf2LG); goto a9SWU; Us90n: if (!is_array($Vf2LG)) { $Vf2LG = ConvertUtil::toArray($Vf2LG); } goto dMtb0; a9SWU: } }