test: Add comprehensive tests for dispatch strategies and IoT signal processing, fix SignalLossRuleProcessor bug
This commit is contained in:
@@ -85,12 +85,12 @@ public class SignalLossRuleProcessor {
|
||||
// 解析 deviceId 和 areaId
|
||||
// Key 格式:iot:clean:signal:loss:{deviceId}:{areaId}
|
||||
String[] parts = key.split(":");
|
||||
if (parts.length < 5) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Long deviceId = Long.parseLong(parts[3]);
|
||||
Long areaId = Long.parseLong(parts[4]);
|
||||
if (parts.length < 6) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Long deviceId = Long.parseLong(parts[4]);
|
||||
Long areaId = Long.parseLong(parts[5]);
|
||||
|
||||
// 检查超时
|
||||
checkTimeoutForDevice(deviceId, areaId);
|
||||
|
||||
Reference in New Issue
Block a user