|
@@ -42,6 +42,7 @@ import com.persagy.utils.StringUtil;
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
/**
|
|
@@ -80,6 +81,9 @@ public class AlarmHandleServiceImpl implements AlarmHandleService {
|
|
|
public void handleIOTData(String msg) throws SchedulerException, InterruptedException {
|
|
|
JSONObject parseObject = JSONObject.parseObject(msg);
|
|
|
msg = parseObject.getString("data");
|
|
|
+ if (StrUtil.isBlank(msg)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
String[] split = msg.split(";");
|
|
|
if (split.length % 4 != 0) {
|
|
|
return;
|