From b6bc6bf3590aedc964a9c2016805f645754c9572 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期四, 12 九月 2019 15:34:10 +0800 Subject: [PATCH] ---联动任务 --- insertdata/insertDataToEs.go | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/insertdata/insertDataToEs.go b/insertdata/insertDataToEs.go index 21fed87..2eed4e7 100644 --- a/insertdata/insertDataToEs.go +++ b/insertdata/insertDataToEs.go @@ -9,6 +9,7 @@ "net" "ruleprocess/cache" "ruleprocess/logger" + "strconv" "time" "basic.com/pubsub/protomsg.git" @@ -206,6 +207,7 @@ } //logger.Info("================灏忓浘鍦板潃:", resp["fileUrl"].(string)) sex := "" + logger.Info(sex) if face.ThftRes.Gender == 1 { sex = "鐢�" } else { @@ -213,11 +215,14 @@ } race := getRaceString(face.ThftRes.Race) ageDescription := getDescription(face.ThftRes.Age) + logger.Info(ageDescription) esDataId := uuid.NewV4().String() linksId := "" if linkId != "" { linksId = linkId } + logger.Info("浜鸿劯鐨刬d:",strconv.FormatUint(face.Id, 10)) + logger.Info("浜鸿劯鐨勫垎鍊硷細",face.Score) pervideo := PerVideoPicture{ esDataId, msg.Cid, @@ -230,9 +235,9 @@ "", alarmRules, time.Now().Format("2006-01-02 15:04:05"), // 鍙娴嬶紝娌℃湁姣斿鏃堕棿 - sex, + sex, //鏆傛敼涓轰汉鑴竔d face.ThftRes.Age, - ageDescription, + ageDescription, // 鏆傛敼涓哄垎鍊糵mt.Sprintf("%.2f",face.Score) race, face.ThftRes.Smile, face.ThftRes.Beauty, -- Gitblit v1.8.0