<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Util; use ModStart\Core\Exception\BizException; use Module\Member\Auth\MemberUser; use Module\Vendor\Util\AtomicUtil; class MemberAtomicUtil { public static function acquireOrFail($Qs3bw, $aeXlE, $shbIl = null, $Jd4L6 = 30) { if (!self::acquire($aeXlE, $shbIl, $Jd4L6)) { BizException::throws($Qs3bw); } } public static function acquire($aeXlE, $shbIl = null, $Jd4L6 = 30) { goto MpZMX; NDRTD: return AtomicUtil::acquire($sFwJk, $Jd4L6); goto OSmd3; nsoef: $sFwJk = $aeXlE . '_' . $shbIl; goto NDRTD; MpZMX: if (null === $shbIl) { $shbIl = MemberUser::id(); } goto nsoef; OSmd3: } public static function release($aeXlE, $shbIl = null) { goto juFKn; juFKn: if (null === $shbIl) { $shbIl = MemberUser::id(); } goto Qa4fj; Qa4fj: $sFwJk = $aeXlE . '_' . $shbIl; goto zropk; zropk: AtomicUtil::release($sFwJk); goto vMoRp; vMoRp: } }