瀏覽代碼

系统:定时任务

4.0
郑根木 2 年之前
父節點
當前提交
c13412a3d4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      smtweb-framework/core/src/main/java/cc/smtweb/framework/core/session/UserSession.java

+ 1
- 1
smtweb-framework/core/src/main/java/cc/smtweb/framework/core/session/UserSession.java 查看文件

@@ -51,7 +51,7 @@ public class UserSession implements Serializable {
this.terminalType = terminalType;

HttpSession session = request.getSession(true);
if (user_id > 0) session.setAttribute(SwConsts._LOGIN_USER_ID_IN_SESSION, getUserKey());
if (user_id > 0L) session.setAttribute(SwConsts._LOGIN_USER_ID_IN_SESSION, getUserKey());
this.sessionId = session.getId();
this.loginTimeMillis = System.currentTimeMillis();
this.lastTimeMillis = this.loginTimeMillis;


Loading…
取消
儲存