refactor(fys-demo): 优化视频上传接口并修复 MQTT 报警信息发送逻辑

- 移除了 VideoUploadController 中的 @SaIgnore 注解,恢复权限控制- 优化了 XinghanSendAlarmMessageRule 中的 Redis 数据检查逻辑
This commit is contained in:
2025-08-27 15:27:19 +08:00
parent a5b8cdffec
commit 9bbed77170
2 changed files with 1 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public class XinghanSendAlarmMessageRule implements MqttMessageRule {
}
// 将发送的信息原文本以List<String>形式存储在Redis中
String data = RedisUtils.getCacheObject(GLOBAL_REDIS_KEY+ DEVICE_KEY_PREFIX + ctx.getDeviceImei() + DEVICE_ALARM_MESSAGE_KEY_PREFIX);
if (data.isEmpty()) {
if (data == null || data.isEmpty()) {
return;
}
//