zhangzengfei
2024-05-16 df2032e42e15c561c496aab4fcdd02ca29a0c0a4
按海康示例填充修改人脸字段
2个文件已修改
9 ■■■■■ 已修改文件
service/subscribe.go 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vo/face.go 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/subscribe.go
@@ -195,6 +195,13 @@
            }
            var ids []string
            for idx, _ := range task.faceList {
                // 按海康示例填充修改字段
                task.faceList[idx].ShotTime = task.faceList[idx].FaceAppearTime
                task.faceList[idx].EntryTime = triggerTime
                for i, _ := range task.faceList[idx].SubImageList.SubImageInfoObject {
                    task.faceList[idx].SubImageList.SubImageInfoObject[i].EventSort = 2
                }
                ids = append(ids, task.faceList[idx].FaceID)
                notification.FaceObjectList.FaceObject = append(notification.FaceObjectList.FaceObject, *task.faceList[idx])
            }
vo/face.go
@@ -26,6 +26,8 @@
    LocationMarkTime                  string `json:"LocationMarkTime"`                  // 人脸定位时间
    FaceAppearTime                    string `json:"FaceAppearTime"`                    // 人脸出现时间
    FaceDisAppearTime                 string `json:"FaceDisAppearTime"`                 // 人脸消失时间
    ShotTime                          string `json:"ShotTime"`                          // 人脸拍摄时间
    EntryTime                         string `json:"EntryTime"`                         // 入库时间
    IDType                            string `json:"IDType"`                            // 证件类型
    IDNumber                          string `json:"IDNumber"`                          // 证件号码
    Name                              string `json:"Name"`                              // 姓名