ruleserver/ruleToformula.go
@@ -289,11 +289,9 @@ labelTypes = append(labelTypes,1) } // 给持续时间的第一张赋予缓存数据(遍历复制) logger.Info("缓存id为:",cacheId) if cacheId != "" { // 有这帧数据的缓存 tempMap := make(map[string]interface{}) for k, result := range args.RuleResult { logger.Info("缓存key为:",k) if k == "yolo" { tempMap[k] = []structure.Result{} for _, res := range result.([]structure.Result) { @@ -307,7 +305,6 @@ } } } logger.Info("缓存规则为:",tempMap) rw.Lock() TimeEleList[cacheId].CacheSdkData.RuleResult = tempMap rw.Unlock()