panlei
2019-08-01 af7ff73f7e7f4cf72c7bd3c5320337ed25efad27
ruleserver/ruleToformula.go
@@ -460,11 +460,11 @@
                  label["linkCache"] = append(label["linkCache"].([]ResultMsg),ruleRes.CacheData)
               }
               logger.Debug("联动任务缓存了几个数据",len(label["linkCache"].([]ResultMsg)))
               for _,result := range args.RuleResult["yolo"].([]Result) {
                  if result.RuleGroupId == groupRule.GroupId {
                     result.Others["linkCache"] = label
                  }
               }
               //for _,result := range args.RuleResult["yolo"].([]Result) {
               //   if result.RuleGroupId == groupRule.GroupId {
               //      result.Others["linkCache"] = label
               //   }
               //}
               for i := 0; i < len(args.RuleResult["yolo"].([]Result)); i++  {
                  if args.RuleResult["yolo"].([]Result)[i].RuleGroupId == groupRule.GroupId { // 把原来那个删掉再存一份新的
                     res := args.RuleResult["yolo"].([]Result)[i]