智慧保安后台管理-外网项目备份
Administrator
2021-08-19 6bd7ffcfcb0b5fb8dd1a5e95e78b07d9bb161f19
src/main/java/org/springblade/modules/auth/utils/TokenUtil.java
@@ -96,6 +96,7 @@
      param.put(TokenConstant.DETAIL, userInfo.getDetail());
      param.put("jurisdiction", user.getJurisdiction());
      param.put("cardid", user.getCardid());
      param.put("Id", user.getId());
      //拼装accessToken
      try {
@@ -108,6 +109,7 @@
            .set(TokenConstant.ROLE_ID, user.getRoleId())
            .set("jurisdiction", user.getJurisdiction())
            .set("cardid", user.getCardid())
            .set("Id", user.getId())
            .set(TokenConstant.OAUTH_ID, userInfo.getOauthId())
            .set(TokenConstant.ACCOUNT, user.getAccount())
            .set(TokenConstant.USER_NAME, user.getAccount())