panlei
2019-11-29 087bf92d707de1a838451719da505f69b6934087
ruleserver/ruleToformula.go
@@ -5,7 +5,7 @@
   "github.com/knetic/govaluate"
   "plugin"
   "ruleprocess/cache"
   "ruleprocess/logger"
   logger "github.com/jeanphorn/log4go"
   "ruleprocess/structure"
   "sort"
   "strconv"
@@ -202,6 +202,7 @@
         } else {
            islink = false
         }
         logger.Info("触发的区域id:",polygonId)
         var labelTypes []int // 0为yolo标签,1为face标签 2为两者标签
         if sdkNames != "" && len(targets) == 0 {
            args.RuleResult["yolo"] = append(args.RuleResult["yolo"].([]structure.Result), structure.Result{taskId, sdkNames, groupRule.GroupId, groupRule.DefenceState, groupRule.AlarmLevel, groupRule.GroupText, yolos, polygonId, islink,label})
@@ -274,7 +275,6 @@
         }
      }
   }
   //logger.Println("-----------------------------------------------听说你是空的?",faces)
   return faces
}
@@ -283,7 +283,6 @@
   if len(am.FilterData) > 0 {
      locations = am.FilterData
   }
   //logger.Println("-----------------------------------------------听说你是空的?",faces)
   return locations
}
func putTargetsToResult(am *structure.AreaMap) []*structure.Arg {
@@ -291,7 +290,6 @@
   if len(am.AlarmObj) > 0 {
      locations = am.AlarmObj
   }
   //logger.Println("-----------------------------------------------听说你是空的?",faces)
   return locations
}
// 联动任务的处理