<?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($JGWZb, $CDU3A, $d4RRw = null, $Tsb75 = 30) { if (!self::acquire($CDU3A, $d4RRw, $Tsb75)) { BizException::throws($JGWZb); } } public static function acquire($CDU3A, $d4RRw = null, $Tsb75 = 30) { goto ZHmKT; p1xgF: return AtomicUtil::acquire($rY0hM, $Tsb75); goto D8zNK; h_QAR: $rY0hM = $CDU3A . '_' . $d4RRw; goto p1xgF; ZHmKT: if (null === $d4RRw) { $d4RRw = MemberUser::id(); } goto h_QAR; D8zNK: } public static function release($CDU3A, $d4RRw = null) { goto H936I; lgdL4: AtomicUtil::release($rY0hM); goto q3auX; H936I: if (null === $d4RRw) { $d4RRw = MemberUser::id(); } goto cwGbR; cwGbR: $rY0hM = $CDU3A . '_' . $d4RRw; goto lgdL4; q3auX: } }