Commit d4fa895c3121ff88cd2d53e659ebda7ee9880df8
1 parent
8e7141a7
暂时设置登录超时时间为永不过期
Signed-off-by: TanYibin <5491541@qq.com>
Showing
2 changed files
with
3 additions
and
3 deletions
huaheng-wms-core/src/main/java/org/jeecg/modules/cas/controller/CasClientController.java
... | ... | @@ -81,7 +81,7 @@ public class CasClientController { |
81 | 81 | String token = HuahengJwtUtil.sign(sysUser.getUsername(), sysUser.getPassword()); |
82 | 82 | // 设置超时时间 |
83 | 83 | redisUtil.set(CommonConstant.PREFIX_USER_TOKEN + token, token); |
84 | - redisUtil.expire(CommonConstant.PREFIX_USER_TOKEN + token, HuahengJwtUtil.EXPIRE_TIME * 2 / 1000); | |
84 | + redisUtil.expire(CommonConstant.PREFIX_USER_TOKEN + token, HuahengJwtUtil.EXPIRE_TIME / 1000); | |
85 | 85 | |
86 | 86 | // 获取用户部门信息 |
87 | 87 | JSONObject obj = new JSONObject(); |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/system/controller/LoginController.java
... | ... | @@ -457,7 +457,7 @@ public class LoginController { |
457 | 457 | String token = HuahengJwtUtil.sign(username, syspassword, warehouseCode); |
458 | 458 | // 设置token缓存有效时间 |
459 | 459 | redisUtil.set(CommonConstant.PREFIX_USER_TOKEN + token, token); |
460 | - redisUtil.expire(CommonConstant.PREFIX_USER_TOKEN + token, JwtUtil.EXPIRE_TIME * 2 / 1000); | |
460 | + redisUtil.expire(CommonConstant.PREFIX_USER_TOKEN + token, HuahengJwtUtil.EXPIRE_TIME / 1000); | |
461 | 461 | obj.put("token", token); |
462 | 462 | obj.put("userInfo", sysUser); |
463 | 463 | obj.put("sysAllDictItems", sysDictService.queryAllDictItems()); |
... | ... | @@ -563,7 +563,7 @@ public class LoginController { |
563 | 563 | String token = JwtUtil.sign(username, syspassword); |
564 | 564 | // 设置超时时间 |
565 | 565 | redisUtil.set(CommonConstant.PREFIX_USER_TOKEN + token, token); |
566 | - redisUtil.expire(CommonConstant.PREFIX_USER_TOKEN + token, JwtUtil.EXPIRE_TIME * 2 / 1000); | |
566 | + redisUtil.expire(CommonConstant.PREFIX_USER_TOKEN + token, HuahengJwtUtil.EXPIRE_TIME / 1000); | |
567 | 567 | |
568 | 568 | // token 信息 |
569 | 569 | obj.put("token", token); |
... | ... |