|
@@ -20,6 +20,7 @@ import com.fdkankan.manage.vo.response.SceneAuthVo;
|
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.tomcat.util.security.Escape;
|
|
|
+import org.joda.time.DateTime;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -27,6 +28,7 @@ import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.concurrent.TimeUnit;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
@@ -293,6 +295,8 @@ public class JySceneUserAuthServiceImpl extends ServiceImpl<IJySceneUserAuthMapp
|
|
|
if(userId == null){
|
|
|
redisUtil.del(redisKey);
|
|
|
throw new BusinessException(ResultCode.USER_NOT_LOGIN);
|
|
|
+ }else {
|
|
|
+ redisUtil.expire(redisKey,2 * 60 * 60);
|
|
|
}
|
|
|
|
|
|
SysUser byId = sysUserService.getById(result.getId());
|