fix : readme update

This commit is contained in:
2025-09-17 17:18:18 +08:00
parent 082c15d697
commit 5d2f32b22b
6 changed files with 224 additions and 36 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Common\Trait;
use App\Cache\Redis\Lua\RateLimit;
use App\Cache\Redis\RedisCache;
use App\Cache\Redis\RedisKey;
use App\Common\Repository\AdminUserRepository;
@@ -34,7 +35,7 @@ trait AdminUserTrait
if (Context::has($key)) {
return Context::get($key,false);
}
$this->redis->with()->lua(RateLimit::class)->check();
if ($this->redis->with()->exists($key)) {
$userInfo = unserialize($this->redis->with()->get($key));
Context::set($key,$userInfo);