6
0
Fork 0

调整配置更新

release
vine_liutk 2022-01-08 16:40:16 +08:00
parent 693404cd55
commit 2a73a217c3
1 changed files with 5 additions and 4 deletions

View File

@ -52,7 +52,7 @@ class SettingService
}
}
return Arr::get($this->items[$_key], $key, $default);
return Arr::get($this->items, $key, $default);
}
/**
@ -109,9 +109,10 @@ class SettingService
*/
public function cleanCache(string $key): void
{
unset($this->items[$key]);
$_key = $this->getSettingKey($key);
unset($this->items[$_key]);
$this->cache->forget($this->cacheKey($key));
$this->cache->forget($this->cacheKey($_key));
}
/**
@ -135,7 +136,7 @@ class SettingService
return $key;
}
$segments = explode($key, '.');
$segments = explode('.', $key);
return $segments[0];
}