From faf0c4936c36695bac0c7e37a1b7f383c6e0984a Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期五, 26 七月 2019 19:37:26 +0800 Subject: [PATCH] fix bug --- controllers/taglist.go | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/controllers/taglist.go b/controllers/taglist.go index 746402f..d0226d0 100644 --- a/controllers/taglist.go +++ b/controllers/taglist.go @@ -8,7 +8,6 @@ "webserver/extend/config" "webserver/extend/esutil" "webserver/extend/util" - "strconv" ) //鏍囩鍒楄〃 @@ -36,8 +35,7 @@ tokenRes["key"] = value.(map[string]interface{})["id"].(string) tokenRes["title"] = value.(map[string]interface{})["tableName"].(string) tokenRes["value"] = value.(map[string]interface{})["id"].(string) - status := int(value.(map[string]interface{})["isDelete"].(float64)) - tokenRes["status"] = strconv.Itoa(status) + tokenRes["status"] = value.(map[string]interface{})["isDelete"] sources = append(sources, tokenRes) } util.ResponseFormat(c, code.Success, sources) -- Gitblit v1.8.0