mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 15:57:50 +08:00
fix : readme update
This commit is contained in:
@@ -35,7 +35,7 @@ trait AdminUserTrait
|
|||||||
if (Context::has($key)) {
|
if (Context::has($key)) {
|
||||||
return Context::get($key,false);
|
return Context::get($key,false);
|
||||||
}
|
}
|
||||||
$this->redis->with()->lua(RateLimit::class)->check();
|
|
||||||
if ($this->redis->with()->exists($key)) {
|
if ($this->redis->with()->exists($key)) {
|
||||||
$userInfo = unserialize($this->redis->with()->get($key));
|
$userInfo = unserialize($this->redis->with()->get($key));
|
||||||
Context::set($key,$userInfo);
|
Context::set($key,$userInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user