This commit is contained in:
2020-03-25 17:08:02 +08:00
parent 6b9202d341
commit 0d2ef31222
35 changed files with 1212 additions and 130 deletions

View File

@@ -72,9 +72,9 @@ class Index extends Admin {
$clear = input('post.clear/a', array());
foreach ($clear as $key => $value) {
if ($value == 'cache') {
\think\Cache::clear(); // 清空缓存数据
\think\facade\Cache::clear(); // 清空缓存数据
} elseif ($value == 'log') {
\think\Log::clear();
\think\facade\Log::clear();
}
}
return $this->success("更新成功!", url('/admin/index/index'));