From b8c0d48692f9ebef784d147abf5b9bd540e534cc Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期一, 10 二月 2025 09:34:44 +0800 Subject: [PATCH] 测试 场景分析 bug --- models/locationAnalysis.go | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/models/locationAnalysis.go b/models/locationAnalysis.go index 1635958..fea0ec0 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) - appearCount := floorBucket.(map[string]interface{})["filter_floor"].(int) + logger.Debugf("floor--------------------------------------- %s -----%s ", floor, floorBucket) + appearCount := floorBucket.(map[string]interface{})["doc_count"].(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("persons--------------------------------------- %s-- %s --", floor, persons) record := &LocationRecord{ //PicDate: timestamp, DocumentNumbers: persons, -- Gitblit v1.8.0