From f88705a2c1adaa093d61d4575c4705f3b05f684c Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期二, 17 十二月 2019 11:01:40 +0800 Subject: [PATCH] --- --- algorithm/personTrack/personTrack.go | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/algorithm/personTrack/personTrack.go b/algorithm/personTrack/personTrack.go index 6c3cb86..d38409d 100644 --- a/algorithm/personTrack/personTrack.go +++ b/algorithm/personTrack/personTrack.go @@ -118,6 +118,11 @@ } func track (rule *protomsg.Rule,am *structure.AreaMap) structure.LittleRuleResult{ + defer func() { + if err := recover();err != nil { + logger.Error("杩借釜鍒ゆ柇澶辫触",err) + } + }() var threshold float32 = 60 // 榛樿闃堝�间负70 if th,err := strconv.ParseFloat(rule.SdkArgValue,32); err == nil { threshold = float32(th) -- Gitblit v1.8.0