<?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($trk4v, $w4kK_, $nlOSA = null, $TmEg4 = 30) { if (!self::acquire($w4kK_, $nlOSA, $TmEg4)) { BizException::throws($trk4v); } } public static function acquire($w4kK_, $nlOSA = null, $TmEg4 = 30) { goto CwOpw; AvZ33: return AtomicUtil::acquire($OSU2M, $TmEg4); goto VIHRE; CwOpw: if (null === $nlOSA) { $nlOSA = MemberUser::id(); } goto uxzlv; uxzlv: $OSU2M = $w4kK_ . '_' . $nlOSA; goto AvZ33; VIHRE: } public static function release($w4kK_, $nlOSA = null) { goto pox2O; QyVQh: AtomicUtil::release($OSU2M); goto VK_DV; qBwtf: $OSU2M = $w4kK_ . '_' . $nlOSA; goto QyVQh; pox2O: if (null === $nlOSA) { $nlOSA = MemberUser::id(); } goto qBwtf; VK_DV: } }