feat : check

This commit is contained in:
2025-04-02 10:00:54 +08:00
parent e39d7a724b
commit 4276021041
3 changed files with 16 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ class SiteCache
$siteKey = CommonRedisKey::siteListKey();
$LngLatKey = CommonRedisKey::siteLngLatKey();
if ($this->redis->exists($siteKey) && $this->redis->exists($LngLatKey)) return;
if ($this->redis->exists($siteKey,RedisCode::SYSTEM_DB) && $this->redis->exists($LngLatKey,RedisCode::SYSTEM_DB)) return;
$siteList = $this->siteModel->getAllSiteList();