From 5fb11ccf2dbdf3ae51586667b202b7c03c5fa9cb Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期五, 27 九月 2019 14:16:27 +0800
Subject: [PATCH] logger改用公共库
---
util/simpleCV.go | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/simpleCV.go b/util/simpleCV.go
index fce0cf0..5c074c3 100644
--- a/util/simpleCV.go
+++ b/util/simpleCV.go
@@ -9,7 +9,7 @@
"image/color"
"os"
"ruleprocess/cache"
- "ruleprocess/logger"
+ "basic.com/valib/logger.git"
"ruleprocess/ruleserver"
"strings"
)
@@ -170,7 +170,7 @@
logger.Info("-----------------------鐪嬬湅鎶ヨ鍖哄煙id锛�",polygonIds)
for i := 0; i < len(polygonIds)-1; i++ {
polygon := getPolygonById(polygonIds[i],cameraId)
- if polygon.Polygon != "[]" {
+ if polygon.Polygon != "[]" && polygon.Polygon != ""{
logger.Debug("鎵�鐢诲尯鍩燂細",polygon.Polygon)
DrawAPolygon(&rook,polygon.Polygon,yellow)
}
--
Gitblit v1.8.0