From d37076e765284f1cf8d4db7b9b34913ef07d9d34 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期四, 19 九月 2019 20:37:37 +0800 Subject: [PATCH] get ServerId from cache --- controllers/taglist.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/controllers/taglist.go b/controllers/taglist.go index beb54e6..cd863a3 100644 --- a/controllers/taglist.go +++ b/controllers/taglist.go @@ -54,7 +54,7 @@ func GetTotalFromDb(id string) (flag bool) { flag = false localConf, err2 := cache.GetServerInfo() - if err2 !=nil || localConf.AlarmIp == "" { + if err2 !=nil || localConf.AlarmIp == "" || localConf.ServerId == "" { logger.Debug("localConfig is wrong!!!") return false } -- Gitblit v1.8.0