mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-18 00:38:33 +08:00
update
This commit is contained in:
@@ -589,10 +589,8 @@ public class NinaXiaPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
}
|
}
|
||||||
String data = map.get("Data");
|
String data = map.get("Data");
|
||||||
// 解密data (此处解密需用 thirdparty_platform_config 的密钥配置)
|
// 解密data (此处解密需用 thirdparty_platform_config 的密钥配置)
|
||||||
ThirdPartyPlatformConfig configInfo = thirdPartyPlatformConfigService.getInfoByOperatorId(operatorIdByType);
|
|
||||||
ThirdPartySecretInfoVO thirdPartySecretInfoVO = thirdpartySecretInfoService.queryByThirdPlatformType(thirdPlatformType);
|
|
||||||
byte[] plainText = Cryptos.aesDecrypt(Encodes.decodeBase64(data),
|
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);
|
String dataStr = new String(plainText, StandardCharsets.UTF_8);
|
||||||
// 转成对应的对象
|
// 转成对应的对象
|
||||||
QueryChargingStatusVO vo = JSONObject.parseObject(dataStr, QueryChargingStatusVO.class);
|
QueryChargingStatusVO vo = JSONObject.parseObject(dataStr, QueryChargingStatusVO.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user