default connector status not working

This commit is contained in:
ZZ 2021-11-18 15:24:54 +08:00
parent e98eceb3bb
commit 42891d16a0
2 changed files with 4 additions and 2 deletions

View File

@ -61,8 +61,9 @@ public class Aes128Cbc {
NoSuchAlgorithmException, IllegalBlockSizeException, UnsupportedEncodingException, NoSuchPaddingException,
InvalidKeyException {
System.out.println(decryptString("jfhddz8ZpaNGaiwFYieY7w==",
"8LpncubmWiPCzY3V", "av6A8QdnRaVRMXu6"
System.out.println(decryptString("vTGCo/ntYzY9ZLHnATipTR1WHP4hHjsB5byV2g62bxbNVQkGba8+u07Dv95vihuO+zYV" +
"/+9qwTUaSvFGUm0M1T9VMThVlsarbCMsBCgC2KE=",
"ojs67l46z3f7rhok", "tet9swfkyojkhaos"
));
//ujNoGsWRo5MyPKYOxeofKwgPEng3xF+yhM8DDjwtwHo=
System.out.println(encrypt("{\"StationIDs\":[\"1\"]}", "8LpncubmWiPCzY3V", "av6A8QdnRaVRMXu6"));

View File

@ -64,6 +64,7 @@ public class NotificationEquipChargeStatusTask extends CoreDispatcher {
equipChargeStatus.setStartChargeSeq(internetSerialNumber);
equipChargeStatus.setStartChargeSeqStat(2);
equipChargeStatus.setConnectorID(orderkey.substring(6, 22));
equipChargeStatus.setConnectorStatus(2);
String current = REDIS.getCacheMapValue(gunkey, "current");
equipChargeStatus.setCurrentA(HexUtils.reverseHexInt(current == null ? "9600" : current) / 10.0);
String voltage = REDIS.getCacheMapValue(gunkey, "voltage");