fix:企业端分标委

This commit is contained in:
zhangqinlin
2021-12-24 11:44:11 +08:00
parent 90b6450891
commit 6f232bdb1b
3 changed files with 4 additions and 7 deletions
@@ -91,12 +91,9 @@ public class AuthenticationUtils {
}catch (Exception e){
throw new JeroBootException("数据同步失败!连接超时");
}
RSA rsa = new RSA(null,publicKey);
byte[] token = rsa.encrypt(StrUtil.bytes(APPLICATION_TOKEN, CharsetUtil.CHARSET_UTF_8), KeyType.PublicKey);
String tokenStr = Base64.getEncoder().encodeToString(token);
map.put("publicKey",publicKey);
map.put("token",tokenStr);
return map;