mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
[dev]更新系统模块
This commit is contained in:
parent
7b985010ce
commit
b275e6fcb4
@ -55,6 +55,7 @@ class Login extends BasicAdmin {
|
||||
$authorizeids = explode(',', $user['authorize']);
|
||||
$user['nodes'] = Db::name('SystemAuthNode')->where('auth', 'in', $authorizeids)->column('node');
|
||||
}
|
||||
Db::name('SystemUser')->where('id', $user['id'])->update(['login_at' => ['exp', 'now()'], 'login_num' => ['exp', 'login_num+1']]);
|
||||
session('user', $user);
|
||||
$this->success('登录成功,正在进入系统...', '@admin');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user