From 914cf7bf26c100b5af62c55b00c58884fee4cbd0 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 26 七月 2019 20:50:45 +0800
Subject: [PATCH] add face-viturl-web-camid

---
 controllers/fileController.go |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/controllers/fileController.go b/controllers/fileController.go
index c18a1f7..5e0214e 100644
--- a/controllers/fileController.go
+++ b/controllers/fileController.go
@@ -153,6 +153,7 @@
 
 type CompareResult struct {
 	Id string `json:"id"`
+	CompareScore float32 `json:"compareScore"`
 	CameraId string `json:"cameraId"`
 	CameraAddr string `json:"cameraAddr"`
 	PicDate string `json:"picDate"`
@@ -328,7 +329,7 @@
 						bi = append(bi, DbPersonVo{
 							PersonId: p.PersonId,
 							IdCard: p.IdCard,
-							CompareScore: util.ParseScore(dbPersonM[p.PersonId].CompareScore),
+							CompareScore: util.ParseScore(p.CompareScore),
 							MonitorLevel: p.MonitorLevel,
 							PersonName: p.PersonName,
 							PersonPicUrl: p.PersonPicUrl,
@@ -339,6 +340,7 @@
 					}
 					vpE := CompareResult{
 						Id: vp.Id,
+						CompareScore: util.ParseScore(captureM[vp.Id].CompareScore),
 						CameraId: vp.CameraId,
 						CameraAddr: vp.CameraAddr,
 						PicDate: vp.PicDate,

--
Gitblit v1.8.0