panlei
2019-06-29 1dc1fc91bb8188c57a9fdbc3138be7833ea1f112
ruleserver/ruleToformula.go
@@ -190,7 +190,7 @@
}
// 对单帧图像的判断 是舍弃(或者说对于某些需求可以放ES数据库一份)还是返回
func Judge(args SdkDatas) {
func Judge(args *SdkDatas) {
   if len(args.Sdkdata) > 0 {
      // 拿到本摄像机的区域
      cameraPolygons := GetPolygons(args.CameraId)
@@ -226,7 +226,7 @@
      }
   }
}
func RunRule(args SdkDatas, groupRule *protomsg.GroupRule, taskId string) bool {
func RunRule(args *SdkDatas, groupRule *protomsg.GroupRule, taskId string) bool {
   resultSplice := []*LittleRuleResult{}
   // 先过完条件规则
   for j := 0; j < len(groupRule.Rules); j++ {
@@ -418,7 +418,7 @@
}
// 联动任务的处理
func linkTask(args SdkDatas, groupRule *protomsg.GroupRule, taskId string) {
func linkTask(args *SdkDatas, groupRule *protomsg.GroupRule, taskId string) {
   // new一个定时器,如果以此groupId为标志的定时器不存在的话
   var flag bool = true
   var timeEle = TimeElement{N: 3, InitN: 3, GroupId: groupRule.GroupId}