From af6141744996422e6dad2a41d17677a33cbf9320 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期三, 01 七月 2020 10:49:03 +0800
Subject: [PATCH] fix

---
 controllers/cameraTask.go |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/controllers/cameraTask.go b/controllers/cameraTask.go
index cb9fd0e..4389f11 100644
--- a/controllers/cameraTask.go
+++ b/controllers/cameraTask.go
@@ -145,11 +145,13 @@
 				if _,ok := m[tM["taskId"].(string)];!ok {//琛ㄧず姝や换鍔″凡琚垹闄�
 					taskId := tM["taskId"].(string)
 					taskName := tM["taskName"].(string)
-					result = append(result, SceneIfDelResult{
-						Id: taskId,
-						Name: taskName,
-						IsDelete: true,
-					})
+					if taskId != "" {
+						result = append(result, SceneIfDelResult{
+							Id: taskId,
+							Name: taskName,
+							IsDelete: true,
+						})
+					}
 				}
 			}
 		}

--
Gitblit v1.8.0