<?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($sFwJk = null, $bufj7 = null) { goto kCFg5; kCFg5: static $Ce8PX = null; goto xyY1D; cSf2T: return $Ce8PX; goto hkf_k; xyY1D: if (null === $Ce8PX) { $Ce8PX = MemberGroupUtil::getMemberGroup(MemberUser::user()); } goto ow2CA; ow2CA: if (null !== $sFwJk) { return $Ce8PX ? $Ce8PX[$sFwJk] : $bufj7; } goto cSf2T; hkf_k: } public static function isDefault() { return self::get('isDefault', false); } public static function id() { return self::get('id', 0); } public static function inGroupIds($Fbq3Y) { return self::is($Fbq3Y); } public static function is($Fbq3Y) { goto RRK25; M5Wjn: if (empty($gZ39D)) { return false; } goto bV4oO; ybZ80: $gZ39D = self::get('id'); goto M5Wjn; bV4oO: return in_array($gZ39D, $Fbq3Y); goto nciv_; RRK25: if (!is_array($Fbq3Y)) { $Fbq3Y = ConvertUtil::toArray($Fbq3Y); } goto ybZ80; nciv_: } }