| | |
| | | va.Result = strconv.FormatBool(isOk) |
| | | tempMap := make(map[string]interface{}) |
| | | for k,result := range args.RuleResult { |
| | | tempMap[k] = result |
| | | if k == "yolo" { |
| | | tempMap[k] = []Result{} |
| | | for _,res := range result.([]Result) { |
| | | tempMap[k] = append(tempMap[k].([]Result),res) |
| | | } |
| | | } |
| | | if k == "face" { |
| | | tempMap[k] = []FaceResult{} |
| | | for _,res := range result.([]FaceResult) { |
| | | tempMap[k] = append(tempMap[k].([]FaceResult),res) |
| | | } |
| | | } |
| | | } |
| | | for _,result := range args.RuleResult["yolo"].([]Result) { |
| | | logger.Warn("放进联动缓存的长度是",len(result.LinkCache)) |