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/task.go | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/controllers/task.go b/controllers/task.go index 51f3a81..17c5855 100644 --- a/controllers/task.go +++ b/controllers/task.go @@ -104,11 +104,13 @@ taskId := tM["taskId"].(string) taskName := tM["taskName"].(string) m[taskId] = taskName - 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