From c4f4abbd7d40e75fef0eb1e1dadb78309c059d73 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期三, 13 十一月 2019 20:48:54 +0800
Subject: [PATCH] ---

---
 algorithm/static/static.go |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/algorithm/static/static.go b/algorithm/static/static.go
index cc83ae0..f652775 100644
--- a/algorithm/static/static.go
+++ b/algorithm/static/static.go
@@ -95,8 +95,8 @@
 }
 // 鍒ゆ柇涓�涓尯鍩熷唴鏈夋病鏈夐潤姝㈢殑鐩爣
 func CompareAndSave(rule *protomsg.Rule, am *structure.AreaMap,lable *structure.Others,args *structure.SdkDatas,message *protomsg.SdkMessage) structure.LittleRuleResult {
-	initN := 60
-	if rule.SdkId == "涓綋闈欐" && rule.SdkArgAlias == "duration" {
+	initN := 5
+	if rule.SdkId == "812b674b-2375-4589-919a-5c1c3278a977" && rule.SdkArgAlias == "duration" {
 		if init,err := strconv.Atoi(rule.SdkArgValue); err != nil {
 			logger.Debug("涓綋闈欐绠楁硶璇诲彇鎸佺画鏃堕棿澶辫触",err)
 		} else {
@@ -120,8 +120,10 @@
 			if singleResult {
 				flag = "true"
 				tars = append(tars,arg)
+				logger.Info("闈欐鐨勭洰鏍囷細",arg.Id,arg.Location,arg.Score)
 			}
 		}
+
 		// 鎶婃弧瓒虫潯浠剁殑鐩爣鏀捐繘areaMap涓�
 		am.AlarmObj = tars
 		// 鏇存柊鏁版嵁,鎶婃柊鏉ョ殑鏁版嵁鍐欏叆缂撳瓨

--
Gitblit v1.8.0