|
|
@@ -9,6 +9,7 @@ import cc.smtweb.framework.core.exception.BizException; |
|
|
|
import cc.smtweb.framework.core.mvc.controller.IEditor; |
|
|
|
import cc.smtweb.framework.core.mvc.realm.exception.UnauthenticatedException; |
|
|
|
import cc.smtweb.framework.core.util.NumberUtil; |
|
|
|
import cc.smtweb.framework.core.util.SpringUtil; |
|
|
|
import cc.smtweb.framework.core.util.StringUtil; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.web.context.request.RequestContextHolder; |
|
|
@@ -157,6 +158,9 @@ public class SessionUtil { |
|
|
|
UserSession us = null; |
|
|
|
if (StringUtils.isNotBlank(token)) { |
|
|
|
us = RedisManager.getInstance().get(token, UserSession.class); |
|
|
|
// token延时 |
|
|
|
SessionManager sessionManager = SpringUtil.getBean(SessionManager.class); |
|
|
|
sessionManager.flush(token); |
|
|
|
} |
|
|
|
//校验登录 |
|
|
|
final boolean isNologin ="design".equals(token) || isNoLogin(lasturi); |
|
|
|