update:第三方待办添加用户名后缀并加密,第三方点击可跳转至审批处理页面22

This commit is contained in:
luoluogit 2024-12-19 16:35:52 +08:00
parent 2b89841beb
commit 3618b3ef91
1 changed files with 2 additions and 1 deletions

View File

@ -46,8 +46,9 @@ public class BacklogServiceHandle extends AbstractServiceHandler {
for (DynamicObject query_one : query) { for (DynamicObject query_one : query) {
String userName; String userName;
try { try {
userName = RSAUtil.decrypt(query_one.getString("username"),RSAUtil.getPrivateKeyFromString()); userName = RSAUtil.encrypt(query_one.getString("username"),RSAUtil.getPublicKeyFromString());
}catch (Exception e){ }catch (Exception e){
logger.info("####公钥加密出现异常,请联系运维人员排查!");
ErrorCode errorCode = new ErrorCode("error_code", "公钥加密出现异常,请联系运维人员排查!"); ErrorCode errorCode = new ErrorCode("error_code", "公钥加密出现异常,请联系运维人员排查!");
throw new KDException(errorCode, e); throw new KDException(errorCode, e);
} }