From fd210f1d6cbe92b9ab44025120bad92f96d4eca8 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期二, 05 十一月 2019 16:41:33 +0800 Subject: [PATCH] 补全推送信息并给张蒙发送带有视频地址的信号 --- main.go | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/main.go b/main.go index c1de1c7..34fa075 100644 --- a/main.go +++ b/main.go @@ -13,16 +13,10 @@ "time" "basic.com/valib/logger.git" - //"bufio" - //"bytes" "flag" "fmt" "github.com/golang/protobuf/proto" "github.com/spf13/viper" - //"gocv.io/x/gocv" - //"image" - //"image/color" - //"os" "ruleprocess/cache" "ruleprocess/ruleserver" "sync" @@ -103,6 +97,7 @@ ruleserver.Judge(&arg, &m) // 鎶妔dkMessage浼犺繘鍘伙紝鏂逛究缂撳瓨鏁版嵁鏃舵嫾鍑轰竴涓猺esultMag // 鎶奱rg閲岀殑鎵撶殑鏍囩鎷垮嚭鏉ョ粰m鍐嶅皝瑁呬竴灞� resultMsg := structure.ResultMsg{SdkMessage: &m, RuleResult: arg.RuleResult} + ruleserver.GetAttachInfo(resultMsg.SdkMessage) ruleEnd := time.Since(start) logger.Debug("瑙勫垯鍒ゆ柇瀹屾墍鐢ㄦ椂闂达細", ruleEnd) // 灏嗘墦瀹屾爣绛剧殑鏁版嵁鎻掑叆鍒癊S @@ -110,9 +105,7 @@ esEnd := time.Since(start) logger.Debug("鎻掑叆瀹孍s鎵�鐢ㄦ椂闂达細", esEnd) //浜嬩欢鎺ㄩ�� - labelFilter.PushSomthing(resultMsg) - //pushEnd := time.Since(start) - //logger.Info("浜嬩欢鎺ㄩ�佸畬鎵�鐢ㄦ椂闂达細",ruleEnd,esEnd,pushEnd) + //labelFilter.PushSomthing(resultMsg) }(msg) } } -- Gitblit v1.8.0