From df2032e42e15c561c496aab4fcdd02ca29a0c0a4 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期四, 16 五月 2024 12:19:13 +0800 Subject: [PATCH] 按海康示例填充修改人脸字段 --- service/subscribe.go | 7 +++++++ vo/face.go | 2 ++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/service/subscribe.go b/service/subscribe.go index e5fd3dc..556043e 100644 --- a/service/subscribe.go +++ b/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]) } diff --git a/vo/face.go b/vo/face.go index 19e31da..49c0d7f 100644 --- a/vo/face.go +++ b/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"` // 濮撳悕 -- Gitblit v1.8.0