<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Auth; use Module\Member\Util\MemberVipUtil; class MemberVip { public static function get($sFwJk = null, $bufj7 = null) { goto doOUP; zm0To: if (null === $VMzwF) { $VMzwF = MemberVipUtil::getMemberVip(MemberUser::user()); } goto By7ss; doOUP: static $VMzwF = null; goto zm0To; yM0zx: return $VMzwF; goto GrQrH; By7ss: if (null !== $sFwJk) { return isset($VMzwF[$sFwJk]) ? $VMzwF[$sFwJk] : $bufj7; } goto yM0zx; GrQrH: } public static function isDefault() { return self::get('isDefault', false); } public static function id() { return self::get('id', 0); } public static function is($BrM2v) { goto Rpvtg; f_mo7: if (!is_array($BrM2v)) { $BrM2v = array($BrM2v); } goto s3IZS; s3IZS: return in_array(self::id(), $BrM2v); goto edv1G; Rpvtg: if (empty($BrM2v)) { return false; } goto f_mo7; edv1G: } }