| | |
| | | } |
| | | |
| | | var notification = vo.FaceNotification{ |
| | | NotificationID: triggerTime + snowflake.GenerateIdStr(), |
| | | SubscribeID: task.conf.Id, |
| | | Title: task.conf.Ext.Title, |
| | | TriggerTime: triggerTime, |
| | | NotificationID: triggerTime + snowflake.GenerateIdStr(), |
| | | SubscribeID: task.conf.Id, |
| | | Title: task.conf.Ext.Title, |
| | | TriggerTime: triggerTime, |
| | | ExecuteOperation: 1, |
| | | } |
| | | 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]) |
| | | } |