From 7c952ec032baaeda70bfb9483cf7e7bf93d92811 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期三, 20 十一月 2019 19:52:54 +0800
Subject: [PATCH] ---

---
 insertdata/insertDataToEs.go |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/insertdata/insertDataToEs.go b/insertdata/insertDataToEs.go
index d0cf323..af570d2 100644
--- a/insertdata/insertDataToEs.go
+++ b/insertdata/insertDataToEs.go
@@ -97,6 +97,7 @@
 type Target struct {
 	TargetId       string  `json:"targetId"`
 	TargetScore    float64 `json:"targetScore"`
+	TargetType     string  `json:"targetType"`
 	Feature        string  `json:"feature"`
 	PicSmUrl       string  `json:"picSmUrl"`
 	TargetLocation Points  `json:"targetLocation"`
@@ -187,6 +188,7 @@
 						var target = new(Target)
 						target.TargetId = face.Id
 						target.TargetScore = face.Score
+						target.TargetType = face.Type
 						target.Feature = base64.StdEncoding.EncodeToString(face.Feature)
 						target.PicSmUrl = resp["fileUrl"].(string)
 						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}}
@@ -200,6 +202,7 @@
 						case "plate":
 							sdkname = "杞︾墝璇嗗埆"
 						}
+						logger.Info("浜鸿劯鐩爣target:",targetInfos)
 						pervideo := PerVideoPicture{
 							face.Uuid,
 							msg.Cid,
@@ -358,6 +361,7 @@
 							var target1 = new(Target)
 							target1.TargetId = target.Id
 							target1.TargetScore = target.Score
+							target1.TargetType = target.Type
 							target1.TargetLocation = Points{TopLeft: Point{target.Location.X, target.Location.Y}, BottomRight: Point{target.Location.X + target.Location.Width, target.Location.Y + target.Location.Height}}
 							targetInfos = append(targetInfos, *target1)
 						}
@@ -558,6 +562,7 @@
 						var target1 = new(Target)
 						target1.TargetId = target.Id
 						target1.TargetScore = target.Score
+						target1.TargetType = target.Type
 						target1.TargetLocation = Points{TopLeft: Point{target.Location.X, target.Location.Y}, BottomRight: Point{target.Location.X + target.Location.Width, target.Location.Y + target.Location.Height}}
 						targetInfos = append(targetInfos, *target1)
 					}

--
Gitblit v1.8.0