Commit 4fcd9bf4 authored by hujun's avatar hujun

登录更新时间

parent bf262bba
......@@ -12,6 +12,7 @@ use app\model\AStore;
use app\model\AuthGroup;
use app\model\AuthRule;
use think\Config;
use think\Cookie;
use think\Session;
/**
......@@ -171,7 +172,7 @@ class Login extends Basic
Session::set("lastLoginTime", time());
Session::set("user_info", $user_data);
$this->operating_records($user_data["id"], 1, '后台登陆'); //记录操作日志
Cookie::set('PHPSESSID', session_id(), $expire_time); //更新session_id过期时间
return $this->response('200', '登录成功', $user_data);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment