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/dbtableperson.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/controllers/dbtableperson.go b/controllers/dbtableperson.go index ac89321..0f7ea9b 100644 --- a/controllers/dbtableperson.go +++ b/controllers/dbtableperson.go @@ -313,7 +313,7 @@ func UpdateDbPersonsOfDbTable(id string) (message string) { localConf, err2 := cache.GetServerInfo() - if err2 !=nil || localConf.AlarmIp == "" { + if err2 !=nil || localConf.AlarmIp == "" || localConf.ServerId == "" { logger.Debug("localConfig is wrong!!!") return "淇敼澶辫触" } -- Gitblit v1.8.0