feat : site cache

This commit is contained in:
2025-02-26 10:37:33 +08:00
parent aafae8838a
commit 7d2a1f855b

View File

@@ -42,7 +42,7 @@ class SiteCache
$this->redis->delete($LngLatKey);
foreach ($siteList as $site) {
$this->redis->geoAdd($LngLatKey, $site->lng,$site->lat,$site->id,RedisCode::SYSTEM_DB);
$this->redis->geoAdd($LngLatKey, $site['lng'],$site['lat'],$site['id'],RedisCode::SYSTEM_DB);
}
$this->redis->set($siteKey,json_encode(array_column($siteList, null, 'id'), JSON_UNESCAPED_UNICODE),RedisCode::SYSTEM_DB);