mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修复重置后台入口设置失效
This commit is contained in:
parent
c1b307b717
commit
116a31f2fe
@ -68,7 +68,9 @@ class Plugs extends Controller
|
|||||||
if (AdminService::instance()->getUserName() !== 'admin') {
|
if (AdminService::instance()->getUserName() !== 'admin') {
|
||||||
$this->error('只有超级管理员才能操作!');
|
$this->error('只有超级管理员才能操作!');
|
||||||
}
|
}
|
||||||
|
$data = SystemService::instance()->getRuntime();
|
||||||
$this->app->console->call('clear');
|
$this->app->console->call('clear');
|
||||||
|
SystemService::instance()->setRuntime($data['app_map'], $data['app_run']);
|
||||||
$this->success('清理网站缓存成功!');
|
$this->success('清理网站缓存成功!');
|
||||||
} catch (HttpResponseException $exception) {
|
} catch (HttpResponseException $exception) {
|
||||||
throw $exception;
|
throw $exception;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user