From 82e7baf2276f4038705a83c0c5a2cb18828791e5 Mon Sep 17 00:00:00 2001
From: sunty <suntianyu0923@163.com>
Date: 星期二, 30 七月 2019 11:42:54 +0800
Subject: [PATCH] fix taglist
---
controllers/taglist.go | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/controllers/taglist.go b/controllers/taglist.go
index 972191f..6e24e2f 100644
--- a/controllers/taglist.go
+++ b/controllers/taglist.go
@@ -37,8 +37,9 @@
tokenRes["key"] = key
tokenRes["title"] = value.(map[string]interface{})["tableName"].(string)
tokenRes["value"] = value.(map[string]interface{})["id"].(string)
- tokenRes["status"] = value.(map[string]interface{})["isDelete"]
- if tokenRes["status"] == 1 {
+ status := int(value.(map[string]interface{})["isDelete"].(float64))
+ tokenRes["status"] = status
+ if status == 1 {
if GetTotalFromDb(key) == false{
continue
}
--
Gitblit v1.8.0