mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:23:26 +08:00
【优化】后台单点登录有效时间调整为最长24小时,并优化挤退策略。
This commit is contained in:
@@ -141,7 +141,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
|
||||
//缓存登录数据
|
||||
var cacheKey = $"LoginUser:{user.id}";
|
||||
ManualDataCache.Instance.Set(cacheKey, auth.token);
|
||||
ManualDataCache.Instance.Set(cacheKey, auth.token, 1440);
|
||||
|
||||
//插入登录日志
|
||||
var log = new SysLoginRecord();
|
||||
|
||||
Reference in New Issue
Block a user