From 623d960a4d7597ef00c27fe09a1688ff72d86075 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 4 Apr 2019 13:37:38 +0800 Subject: [PATCH] Update Login.php --- application/admin/controller/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/controller/Login.php b/application/admin/controller/Login.php index b4b8716ba..a01d0e29b 100644 --- a/application/admin/controller/Login.php +++ b/application/admin/controller/Login.php @@ -59,7 +59,7 @@ class Login extends BasicAdmin ($user['password'] !== md5($password)) && $this->error('登录密码与账号不匹配,请重新输入!'); empty($user['status']) && $this->error('账号已经被禁用,请联系管理!'); // 更新登录信息 - $data = ['login_at' => ['exp', 'now()'], 'login_num' => ['exp', 'login_num+1']]; + $data = ['login_at' => date('Y-m-d H:i:s'), 'login_num' => $user['login_num'] + 1]; Db::name('SystemUser')->where(['id' => $user['id']])->update($data); session('user', $user); !empty($user['authorize']) && NodeService::applyAuthNode();