Browse Source

刷新session时用户不存在则跳过

tags/24080901
WendyYang 1 year ago
parent
commit
27b6d52a17
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserAuthManage.java

+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserAuthManage.java View File

@@ -33,6 +33,9 @@ public class UserAuthManage {
@SuppressWarnings({"rawtypes", "unchecked"})
public void refreshSession(Long userId) {
UserFullInfoDTO userFullInfo = userInfoHelper.getUserFullInfo(userId);
if (userFullInfo == null) {
return;
}
List<String> sessionIds = getSessionIds(userFullInfo.getUsername());
if (sessionIds.isEmpty()) {
return;


Loading…
Cancel
Save