From 5a25fb6bbd594374f9cdc9587b8f2ec5ea5df238 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期二, 19 十一月 2019 10:12:43 +0800 Subject: [PATCH] --- --- insertdata/insertDataToEs.go | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/insertdata/insertDataToEs.go b/insertdata/insertDataToEs.go index 4a14019..1b61223 100644 --- a/insertdata/insertDataToEs.go +++ b/insertdata/insertDataToEs.go @@ -49,8 +49,8 @@ Content string `json:"content"` AlarmRules []AlarmRule `json:"alarmRules"` LikeDate string `json:"likeDate"` - ShowLables string `json:"showLables"` - OtherLables string `json:"otherLables"` + ShowLabels string `json:"showLabels"` + OtherLabels string `json:"otherLabels"` VideoUrl string `json:"videoUrl"` AnalyServerId string `json:"analyServerId"` AnalyServerName string `json:"analyServerName"` @@ -79,8 +79,8 @@ Content string `json:"content"` AlarmRules []AlarmRule `json:"alarmRules"` LikeDate string `json:"likeDate"` - ShowLables string `json:"showLables"` - OtherLables string `json:"otherLables"` + ShowLabels string `json:"showLabels"` + OtherLabels string `json:"otherLabels"` VideoUrl string `json:"videoUrl"` AnalyServerId string `json:"analyServerId"` AnalyServerName string `json:"analyServerName"` @@ -97,7 +97,7 @@ type Target struct { TargetId string `json:"targetId"` TargetScore float64 `json:"targetScore"` - FaceFeature string `json:"faceFeature"` + FaceFeature string `json:"feature"` PicSmUrl string `json:"picSmUrl"` TargetLocation Points `json:"targetLocation"` } @@ -219,6 +219,14 @@ target.TargetLocation = Points{TopLeft: Point{face.Location.X, face.Location.Y}, BottomRight: Point{face.Location.X + face.Location.Width, face.Location.Y + face.Location.Height}} var targetInfos []Target targetInfos = append(targetInfos, *target) + + sdkname := "" + switch key { + case "face": + sdkname = "浜鸿劯" + case "plate": + sdkname = "杞︾墝璇嗗埆" + } pervideo := PerVideoPicture{ face.Uuid, msg.Cid, @@ -228,7 +236,7 @@ imgMaxUrl, msg.Tasklab.Taskid, msg.Tasklab.Taskname, - "浜鸿劯", + sdkname, time.Now().Format("2006-01-02 15:04:05"), alarmRules, time.Now().Format("2006-01-02 15:04:05"), // 鍙娴嬶紝娌℃湁姣斿鏃堕棿 -- Gitblit v1.8.0