[dev]更新系统模块

This commit is contained in:
邹景立 2017-03-15 12:48:17 +08:00
parent 7b985010ce
commit b275e6fcb4

View File

@ -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');
}