From b275e6fcb4421bfbb53e656212c30b18508348c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Wed, 15 Mar 2017 12:48:17 +0800 Subject: [PATCH] =?UTF-8?q?[dev]=E6=9B=B4=E6=96=B0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Login.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/admin/controller/Login.php b/application/admin/controller/Login.php index 707379823..293896137 100644 --- a/application/admin/controller/Login.php +++ b/application/admin/controller/Login.php @@ -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'); }