From 366e2ff546092d9be26411fb698b3ddd8e834a11 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期一, 09 十二月 2024 15:38:02 +0800
Subject: [PATCH] 更新实名比对

---
 compare/capture.go |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/compare/capture.go b/compare/capture.go
index 71956f7..07e0e75 100644
--- a/compare/capture.go
+++ b/compare/capture.go
@@ -1,6 +1,7 @@
 package compare
 
 import (
+	"fmt"
 	"sdkCompare/cache"
 
 	"basic.com/pubsub/protomsg.git"
@@ -8,7 +9,7 @@
 
 func capturePersonsCompere(args protomsg.CompareArgs, fFeature []float32, baseScore float32) protomsg.SdkCompareResult {
 	var scr protomsg.SdkCompareResult
-	var walkedArea = make(map[string]struct{}, 0)
+	var walkedArea = make(map[string]struct{})
 
 	// 姣斿浼犲叆鐨勫皬鍖篿d
 	if args.TreeNodes != nil && len(args.TreeNodes) > 0 {
@@ -44,7 +45,7 @@
 
 	// 姣斿鍏ㄩ儴灏忓尯
 	if !args.IsCompareAll && len(args.TreeNodes) > 0 {
-		baseScore += 20
+		baseScore += 10
 	}
 
 	for key, val := range cache.CaptureDbMap.Area {
@@ -52,6 +53,7 @@
 			continue
 		}
 
+		fmt.Printf("Walk area %s, cache len %d\n", key, val.GetLen())
 		targets := val.Walk(DoSdkCompare, fFeature, baseScore)
 		if len(targets) > 0 {
 			// 姣斿缁撴灉鍘婚噸, 鍚屼竴涓汉鍒拌杩囧涓皬鍖�, 缂撳瓨鏁版嵁鍐呬細鏈夊鏉¤褰�

--
Gitblit v1.8.0