|
|
@@ -105,7 +105,7 @@ public class PlatformNotifyServiceImpl implements PlatformNotifyService {
|
|
|
"FailReason":%d
|
|
|
}
|
|
|
""".formatted(platform.getOperatorId(), 0, token, ttl, 0);
|
|
|
- return PlatformAesUtil.encrypt(platform, params);
|
|
|
+ return PlatformAesUtil.encrypt(platform.getUserDataSecret(), platform.getUserDataSecretIv(), params);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -167,7 +167,8 @@ public class PlatformNotifyServiceImpl implements PlatformNotifyService {
|
|
|
"Status":%d
|
|
|
}
|
|
|
""".formatted(0);
|
|
|
- return PlatformAesUtil.encrypt(PlatformCache.INSTANCE.getPlatformByName(platformName), params);
|
|
|
+ var platform = PlatformCache.INSTANCE.getPlatformByName(platformName);
|
|
|
+ return PlatformAesUtil.encrypt(platform.getUserDataSecret(), platform.getUserDataSecretIv(), params);
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -205,7 +206,8 @@ public class PlatformNotifyServiceImpl implements PlatformNotifyService {
|
|
|
"FailReason":%d
|
|
|
}
|
|
|
""".formatted(startChargeSeq, 0, 0);
|
|
|
- return PlatformAesUtil.encrypt(PlatformCache.INSTANCE.getPlatformByName(platformName), params);
|
|
|
+ var platform = PlatformCache.INSTANCE.getPlatformByName(platformName);
|
|
|
+ return PlatformAesUtil.encrypt(platform.getUserDataSecret(), platform.getUserDataSecretIv(), params);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -244,7 +246,8 @@ public class PlatformNotifyServiceImpl implements PlatformNotifyService {
|
|
|
"SuccStat":%d
|
|
|
}
|
|
|
""".formatted(startChargeSeq, 0);
|
|
|
- return PlatformAesUtil.encrypt(PlatformCache.INSTANCE.getPlatformByName(platformName), params);
|
|
|
+ var platform = PlatformCache.INSTANCE.getPlatformByName(platformName);
|
|
|
+ return PlatformAesUtil.encrypt(platform.getUserDataSecret(), platform.getUserDataSecretIv(), params);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -273,7 +276,8 @@ public class PlatformNotifyServiceImpl implements PlatformNotifyService {
|
|
|
"FailReason":%d
|
|
|
}
|
|
|
""".formatted(startChargeSeq, 0, 0);
|
|
|
- return PlatformAesUtil.encrypt(PlatformCache.INSTANCE.getPlatformByName(platformName), params);
|
|
|
+ var platform = PlatformCache.INSTANCE.getPlatformByName(platformName);
|
|
|
+ return PlatformAesUtil.encrypt(platform.getUserDataSecret(), platform.getUserDataSecretIv(), params);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -328,7 +332,8 @@ public class PlatformNotifyServiceImpl implements PlatformNotifyService {
|
|
|
"ConfirmResult":%d
|
|
|
}
|
|
|
""".formatted(startChargeSeq, chargeOrder.getConnectorId(), 0);
|
|
|
- return PlatformAesUtil.encrypt(PlatformCache.INSTANCE.getPlatformByName(platformName), params);
|
|
|
+ var platform = PlatformCache.INSTANCE.getPlatformByName(platformName);
|
|
|
+ return PlatformAesUtil.encrypt(platform.getUserDataSecret(), platform.getUserDataSecretIv(), params);
|
|
|
}
|
|
|
|
|
|
|