<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Auth; use Module\Member\Util\MemberVipUtil; class MemberVip { public static function get($OSU2M = null, $E_3eV = null) { goto tqkAD; tqkAD: static $W6FTy = null; goto GmmnA; fO_NC: if (null !== $OSU2M) { return isset($W6FTy[$OSU2M]) ? $W6FTy[$OSU2M] : $E_3eV; } goto CT1lj; CT1lj: return $W6FTy; goto qOxu5; GmmnA: if (null === $W6FTy) { $W6FTy = MemberVipUtil::getMemberVip(MemberUser::user()); } goto fO_NC; qOxu5: } public static function isDefault() { return self::get('isDefault', false); } public static function id() { return self::get('id', 0); } public static function is($ABg9n) { goto dFi3l; dFi3l: if (empty($ABg9n)) { return false; } goto e7Ddc; YxkTw: return in_array(self::id(), $ABg9n); goto SlJvL; e7Ddc: if (!is_array($ABg9n)) { $ABg9n = array($ABg9n); } goto YxkTw; SlJvL: } }