mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改代码
This commit is contained in:
parent
54d542ba59
commit
061a92aea5
@ -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'));
|
||||
}
|
||||
|
@ -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('只有超级管理员才能操作!');
|
||||
|
Loading…
x
Reference in New Issue
Block a user