zhaoqingang
2025-02-10 9f1b86b7f2732432aed2c13165c95812e57d4f49
测试 场景分析 bug
1个文件已修改
4 ■■■ 已修改文件
models/locationAnalysis.go 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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,