refactor(fys-demo): 优化视频上传接口并修复 MQTT 报警信息发送逻辑
- 移除了 VideoUploadController 中的 @SaIgnore 注解,恢复权限控制- 优化了 XinghanSendAlarmMessageRule 中的 Redis 数据检查逻辑
This commit is contained in:
@ -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;
|
||||
}
|
||||
//
|
||||
|
Reference in New Issue
Block a user