zhangzengfei
2024-03-29 d5769136a6e78b1a825fa390fb2c8b710b1e064b
repository/captureRepo.go
@@ -70,7 +70,7 @@
   var device models.Device
   if err := device.FindById(deviceId); err != nil {
      logger.Debug("Can't find device in database, device:%s, %s", deviceId, err.Error())
      logger.Warn("Can't find device in database, device:%s, %s", deviceId, err.Error())
      return pd
   }
@@ -85,16 +85,12 @@
   tr := vo.TaskResultInfo{
      Id:              uuid.NewV4().String(),
      CameraId:        deviceId,
      OrgName:         "",
      CameraAddr:      device.Addr + device.Pos,
      CameraName:      device.Name,
      PicMaxUrl:       []string{""},
      PicDate:         time.Now().Format("2006-01-02 15:04:05"),
      LikeDate:        time.Now().Format("2006-01-02 15:04:05"),
      TaskId:          "",
      AnalyServerId:   deviceId,
      AnalyServerName: "",
      AnalyServerIp:   "",
      DataSource:      "camera",
      TargetInfo:      []vo.TargetInfo{{TargetId: faceId}},
   }