From 9f1b86b7f2732432aed2c13165c95812e57d4f49 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期一, 10 二月 2025 09:31:44 +0800
Subject: [PATCH] 测试 场景分析 bug

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

diff --git a/models/locationAnalysis.go b/models/locationAnalysis.go
index 1635958..3a81f6c 100644
--- a/models/locationAnalysis.go
+++ b/models/locationAnalysis.go
@@ -501,7 +501,9 @@
 								if floorBuckets, ok := locationBucket.(map[string]interface{})["floor"].(map[string]interface{})["buckets"].([]interface{}); ok {
 									for _, floorBucket := range floorBuckets {
 										floor := floorBucket.(map[string]interface{})["key"].(string)
+										logger.Debugf("floor--------------------------------------- %s -----%s ", floor, floorBucket)
 										appearCount := floorBucket.(map[string]interface{})["filter_floor"].(int)
+										logger.Debugf("appearCount--------------------------------------- %s- --", appearCount)
 										// 鏋勫缓 LocationRecord 缁撴瀯浣�
 										var persons []string
 										if docNumBuckets, ok := floorBucket.(map[string]interface{})["document_numbers"].(map[string]interface{})["buckets"].([]interface{}); ok {
@@ -510,7 +512,7 @@
 											}
 										}
 
-										logger.Debugf("floor--------------------------------------- %s-- %s --", floor, appearCount)
+										//logger.Debugf("floor--------------------------------------- %s-- %s --", floor, appearCount)
 										record := &LocationRecord{
 											//PicDate:        timestamp,
 											DocumentNumbers: persons,

--
Gitblit v1.8.0