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

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

diff --git a/algorithm/middleware/middleware.go b/algorithm/middleware/middleware.go
index e5136f7..5ff0dd6 100644
--- a/algorithm/middleware/middleware.go
+++ b/algorithm/middleware/middleware.go
@@ -306,6 +306,7 @@
 	if err1 != nil {
 		panic("娌℃湁鎵惧埌鍏ュ彛鍑芥暟")
 	}
+	logger.Info("鍙戠粰so鐨勬暟鎹細",rule.SdkArgValue,rule.Operator,rule.SdkArgAlias)
 	ruleResult := f.(func(rule *protomsg.Rule, am *structure.AreaMap,lable *structure.Others, args *structure.SdkDatas,message *protomsg.SdkMessage)structure.LittleRuleResult)(rule,am,lable,args,message)
 	return ruleResult
 }
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