From 3c0404c8b467060ada7ca081f7a24023be4ffda4 Mon Sep 17 00:00:00 2001 From: Lemon Date: Thu, 30 May 2024 14:23:42 +0800 Subject: [PATCH] update --- .../platform/service/impl/NinaXiaPlatformServiceImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/impl/NinaXiaPlatformServiceImpl.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/impl/NinaXiaPlatformServiceImpl.java index c7007dea8..34359e108 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/impl/NinaXiaPlatformServiceImpl.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/impl/NinaXiaPlatformServiceImpl.java @@ -589,10 +589,8 @@ public class NinaXiaPlatformServiceImpl implements ThirdPartyPlatformService { } String data = map.get("Data"); // 解密data (此处解密需用 thirdparty_platform_config 的密钥配置) - ThirdPartyPlatformConfig configInfo = thirdPartyPlatformConfigService.getInfoByOperatorId(operatorIdByType); - ThirdPartySecretInfoVO thirdPartySecretInfoVO = thirdpartySecretInfoService.queryByThirdPlatformType(thirdPlatformType); byte[] plainText = Cryptos.aesDecrypt(Encodes.decodeBase64(data), - configInfo.getDataSecret().getBytes(), configInfo.getDataSecretIv().getBytes()); + ningXiaSecretInfo.getOurDataSecret().getBytes(), ningXiaSecretInfo.getOurDataSecretIv().getBytes()); String dataStr = new String(plainText, StandardCharsets.UTF_8); // 转成对应的对象 QueryChargingStatusVO vo = JSONObject.parseObject(dataStr, QueryChargingStatusVO.class); @@ -637,7 +635,7 @@ public class NinaXiaPlatformServiceImpl implements ThirdPartyPlatformService { String dataSecret = ningXiaSecretInfo.getTheirDataSecret(); String dataSecretIv = ningXiaSecretInfo.getTheirDataSecretIv(); String urlAddress = ningXiaSecretInfo.getTheirUrlPrefix(); - + OrderDetail orderDetail = orderBasicInfoService.getOrderDetailByOrderCode(orderCode); String url = urlAddress + "supervise_notification_charge_order_info_history";