智慧保安后台管理-验收版本
tangzy
2021-12-06 30df94c05573a426d030510d4dd58ae1d93bfb7a
src/main/java/org/springblade/modules/auth/utils/TokenUtil.java
@@ -94,6 +94,11 @@
      param.put(TokenConstant.NICK_NAME, user.getRealName());
      param.put(TokenConstant.ROLE_NAME, Func.join(userInfo.getRoles()));
      param.put(TokenConstant.DETAIL, userInfo.getDetail());
      param.put("jurisdiction", user.getJurisdiction());
      param.put("cardid", user.getCardid());
      param.put("Id", user.getId());
      param.put("rname", userInfo.getRoles());
      param.put("list", user);
      //拼装accessToken
      try {
@@ -103,6 +108,11 @@
            .set(TokenConstant.USER_ID, Func.toStr(user.getId()))
            .set(TokenConstant.DEPT_ID, user.getDeptId())
            .set(TokenConstant.POST_ID, user.getPostId())
            .set("jurisdiction", user.getJurisdiction())
            .set("cardid", user.getCardid())
            .set("Id", user.getId())
            .set("rname", userInfo.getRoles())
            .set("list", user)
            .set(TokenConstant.ROLE_ID, user.getRoleId())
            .set(TokenConstant.OAUTH_ID, userInfo.getOauthId())
            .set(TokenConstant.ACCOUNT, user.getAccount())