From 116a31f2fe9326cd142cd629d9edb51b44277508 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 16 Apr 2020 21:36:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E7=BD=AE=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E5=85=A5=E5=8F=A3=E8=AE=BE=E7=BD=AE=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/api/Plugs.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/admin/controller/api/Plugs.php b/app/admin/controller/api/Plugs.php index 35e5b1a24..6d0fa360e 100644 --- a/app/admin/controller/api/Plugs.php +++ b/app/admin/controller/api/Plugs.php @@ -68,7 +68,9 @@ class Plugs extends Controller if (AdminService::instance()->getUserName() !== 'admin') { $this->error('只有超级管理员才能操作!'); } + $data = SystemService::instance()->getRuntime(); $this->app->console->call('clear'); + SystemService::instance()->setRuntime($data['app_map'], $data['app_run']); $this->success('清理网站缓存成功!'); } catch (HttpResponseException $exception) { throw $exception;