<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Session; use Illuminate\Support\Facades\Session; use Module\Vendor\Util\AtomicUtil; class SessionUtil { public static function atomicProduce($BjHij, $gbkxa, $UHOKU = 3600) { AtomicUtil::produce("{$BjHij}:" . Session::getId(), $gbkxa, $UHOKU); } public static function atomicConsume($BjHij) { return AtomicUtil::consume("{$BjHij}:" . Session::getId()); } public static function atomicRemove($BjHij) { AtomicUtil::remove("{$BjHij}:" . Session::getId()); } }