修改代码

This commit is contained in:
Anyon 2020-11-24 18:47:43 +08:00
parent 54d542ba59
commit 061a92aea5
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ class Login extends Controller
'login_at' => $this->app->db->raw('now()'),
'login_num' => $this->app->db->raw('login_num+1'),
]);
sysoplog('用户登录', '登录系统后台成功');
sysoplog('后台用户登录', '系统后台登录成功');
$GLOBALS['oplogs'] = [];
$this->success('登录成功', sysuri('admin/index/index'));
}

View File

@ -47,11 +47,11 @@ class Plugs extends Controller
{
if (AdminService::instance()->isSuper()) if (input('state')) {
SystemService::instance()->setRuntime('product');
sysoplog('切换运行模式', '由开发模式切为为产品模式');
sysoplog('切换运行模式', '由开发模式切为为产品模式');
$this->success('已切换为产品模式!');
} else {
SystemService::instance()->setRuntime('debug');
sysoplog('切换运行模式', '由产品模式切为为开发模式');
sysoplog('切换运行模式', '由产品模式切为为开发模式');
$this->success('已切换为开发模式!');
} else {
$this->error('只有超级管理员才能操作!');