فهرست منبع

增加人脸识别日志。

zhengqiang 5 سال پیش
والد
کامیت
2a563d61f3
1فایلهای تغییر یافته به همراه12 افزوده شده و 12 حذف شده
  1. 12 12
      lapi/src/main/java/com/jpsoft/smart/lapi/handler/PersonVerificationHandler.java

+ 12 - 12
lapi/src/main/java/com/jpsoft/smart/lapi/handler/PersonVerificationHandler.java

@@ -63,18 +63,6 @@ public class PersonVerificationHandler extends SimpleChannelInboundHandler<Perso
         //设备序列号
         String deviceNo = jsonObject.getStr("DeviceCode");
 
-        new Thread(()->{
-            SysLog sysLog = new SysLog();
-            sysLog.setPointcut(deviceNo);
-            sysLog.setUrl("/LAPI/V1.0/System/Event/Notification/PersonVerification");
-            sysLog.setData("");
-            sysLog.setRemark("收到人脸识别信息");
-            SocketAddress remoteAddress = ctx.channel().remoteAddress();
-            sysLog.setRemoteIp(remoteAddress.toString());
-            sysLog.setCreateTime(new Date());
-            sysLogService.insert(sysLog);
-        }).start();
-
         //人员温度信息
         BigDecimal temperature = faceJson.getBigDecimal("Temperature");
 
@@ -102,6 +90,18 @@ public class PersonVerificationHandler extends SimpleChannelInboundHandler<Perso
         map.put("matchPersonInfo",matchPersonInfo);
         log.warn(map.toString());
 
+        new Thread(()->{
+            SysLog sysLog = new SysLog();
+            sysLog.setPointcut(deviceNo);
+            sysLog.setUrl("/LAPI/V1.0/System/Event/Notification/PersonVerification");
+            sysLog.setData(map.toString());
+            sysLog.setRemark("收到人脸识别信息");
+            SocketAddress remoteAddress = ctx.channel().remoteAddress();
+            sysLog.setRemoteIp(remoteAddress.toString());
+            sysLog.setCreateTime(new Date());
+            sysLogService.insert(sysLog);
+        }).start();
+
         //记录人员记录
         personDeviceLogService.deviceInsertLog(deviceNo,temperature,faceImageJson,libMatInfoListJson,matchPersonInfo,date);