From 3618b3ef9194b0e965305c7af19d6589f1860980 Mon Sep 17 00:00:00 2001 From: luoluogit <1014532975@qq.com> Date: Thu, 19 Dec 2024 16:35:52 +0800 Subject: [PATCH] =?UTF-8?q?update:=E7=AC=AC=E4=B8=89=E6=96=B9=E5=BE=85?= =?UTF-8?q?=E5=8A=9E=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7=E5=90=8D=E5=90=8E?= =?UTF-8?q?=E7=BC=80=E5=B9=B6=E5=8A=A0=E5=AF=86=EF=BC=8C=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E7=82=B9=E5=87=BB=E5=8F=AF=E8=B7=B3=E8=BD=AC=E8=87=B3?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E5=A4=84=E7=90=86=E9=A1=B5=E9=9D=A222?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sys/midservice/servicehandler/BacklogServiceHandle.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/servicehandler/BacklogServiceHandle.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/servicehandler/BacklogServiceHandle.java index 240175f..a8558a1 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/servicehandler/BacklogServiceHandle.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/midservice/servicehandler/BacklogServiceHandle.java @@ -46,8 +46,9 @@ public class BacklogServiceHandle extends AbstractServiceHandler { for (DynamicObject query_one : query) { String userName; try { - userName = RSAUtil.decrypt(query_one.getString("username"),RSAUtil.getPrivateKeyFromString()); + userName = RSAUtil.encrypt(query_one.getString("username"),RSAUtil.getPublicKeyFromString()); }catch (Exception e){ + logger.info("####公钥加密出现异常,请联系运维人员排查!"); ErrorCode errorCode = new ErrorCode("error_code", "公钥加密出现异常,请联系运维人员排查!"); throw new KDException(errorCode, e); }