From 9d88c7c467f8d93af4aab9ba0b6d6c01c2ffc546 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期四, 20 八月 2020 20:35:30 +0800 Subject: [PATCH] add get buckets contrl --- 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