Browse Source

系统:定时任务

4.0
郑根木 2 years ago
parent
commit
c13412a3d4
1 changed files with 1 additions and 1 deletions
  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 View File

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


HttpSession session = request.getSession(true); 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.sessionId = session.getId();
this.loginTimeMillis = System.currentTimeMillis(); this.loginTimeMillis = System.currentTimeMillis();
this.lastTimeMillis = this.loginTimeMillis; this.lastTimeMillis = this.loginTimeMillis;


Loading…
Cancel
Save