|
|
@@ -140,7 +140,6 @@ public class SmsbDeviceAuthServiceImpl implements ISmsbDeviceAuthService {
|
|
|
|
|
|
@Override
|
|
|
public R<String> deviceAuth(HttpHeartbeatReq requestParam) {
|
|
|
-
|
|
|
SmsbDeviceAuth insert = new SmsbDeviceAuth();
|
|
|
String deviceIp = requestParam.getDeviceIp();
|
|
|
insert.setDeviceIp(deviceIp);
|
|
|
@@ -171,7 +170,9 @@ public class SmsbDeviceAuthServiceImpl implements ISmsbDeviceAuthService {
|
|
|
|
|
|
try {
|
|
|
// 2 AES数据解密
|
|
|
- decryptCode = EncryptUtils.decryptByAes(encryptCode, authKey);
|
|
|
+ // Update: 2025-05-09 使用 Sm4 替换 AES
|
|
|
+ // decryptCode = EncryptUtils.decryptByAes(encryptCode, authKey);
|
|
|
+ decryptCode = EncryptUtils.decryptBySm4(encryptCode, authKey);
|
|
|
} catch (Exception e) {
|
|
|
log.error("device auth error : 设备鉴权数据解密失败!", e);
|
|
|
}
|