<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Auth; use Module\Member\Util\MemberVipUtil; class MemberVip { public static function get($rY0hM = null, $eJPg3 = null) { goto qMEEq; pCtkT: if (null === $IjI3r) { $IjI3r = MemberVipUtil::getMemberVip(MemberUser::user()); } goto VxGJf; OjUt1: return $IjI3r; goto BAHKA; qMEEq: static $IjI3r = null; goto pCtkT; VxGJf: if (null !== $rY0hM) { return isset($IjI3r[$rY0hM]) ? $IjI3r[$rY0hM] : $eJPg3; } goto OjUt1; BAHKA: } public static function isDefault() { return self::get('isDefault', false); } public static function id() { return self::get('id', 0); } public static function is($iWqZy) { goto YfeVv; E0Ja3: return in_array(self::id(), $iWqZy); goto t2tN1; YfeVv: if (empty($iWqZy)) { return false; } goto Dsaea; Dsaea: if (!is_array($iWqZy)) { $iWqZy = array($iWqZy); } goto E0Ja3; t2tN1: } }