You've already forked FrameTour-BE
额外提示
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package com.ycwl.basic.controller.viid;
|
package com.ycwl.basic.controller.viid;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
import cn.hutool.core.thread.ThreadFactoryBuilder;
|
import cn.hutool.core.thread.ThreadFactoryBuilder;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import com.ycwl.basic.utils.JacksonUtil;
|
import com.ycwl.basic.utils.JacksonUtil;
|
||||||
@@ -274,9 +275,14 @@ public class ViidController {
|
|||||||
}
|
}
|
||||||
if (shotTime == null) {
|
if (shotTime == null) {
|
||||||
shotTime = new Date();
|
shotTime = new Date();
|
||||||
} else if (Math.abs(shotTime.getTime() - System.currentTimeMillis()) > 24 * 60 * 60 * 1000) {
|
} else if (!DateUtil.isSameDay(shotTime, new Date())) {
|
||||||
|
log.warn("时间不是今天,使用当前时间。错误entity:{}", face);
|
||||||
shotTime = new Date();
|
shotTime = new Date();
|
||||||
}
|
}
|
||||||
|
if (Math.abs(shotTime.getTime() - System.currentTimeMillis()) > 3600 * 1000) {
|
||||||
|
String jsonString = JacksonUtil.toJSONStringCompat(req);
|
||||||
|
log.warn("时间差超过1小时。device:{},错误entity:{}", device, jsonString);
|
||||||
|
}
|
||||||
Long scenicId = device.getScenicId();
|
Long scenicId = device.getScenicId();
|
||||||
if (scenicId == null) {
|
if (scenicId == null) {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user