From 69267f038f87f411edb92daed0ae67d93ca6c5fd Mon Sep 17 00:00:00 2001 From: sunty <suntianyu0923@163.com> Date: 星期五, 02 八月 2019 10:09:36 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- service/EnableStatusControlService.go | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/service/EnableStatusControlService.go b/service/EnableStatusControlService.go index 7e0f303..c9e1ff5 100644 --- a/service/EnableStatusControlService.go +++ b/service/EnableStatusControlService.go @@ -2,11 +2,13 @@ import ( "basic.com/dbapi.git" + "basic.com/pubsub/protomsg.git" "encoding/json" "fmt" "strconv" "strings" "time" + "webserver/discovery" "webserver/extend/config" "webserver/extend/esutil" "webserver/extend/logger" @@ -117,6 +119,23 @@ } if middle > 0 { logger.Debug("淇敼鎴愬姛") + if flag {//鐢熸晥鐨� + discovery.AddDbMessage(&protomsg.EsPersonCacheChange{ + Type: protomsg.EsCacheChanged_T_DbTable, + PersonId: "", + TableId: id, + Feature: "", + Action: protomsg.DbAction_Insert, + }) + } else {//澶辨晥鐨� + discovery.AddDbMessage(&protomsg.EsPersonCacheChange{ + Type: protomsg.EsCacheChanged_T_DbTable, + PersonId: "", + TableId: id, + Feature: "", + Action: protomsg.DbAction_Insert, + }) + } message = "淇敼鎴愬姛" } return message -- Gitblit v1.8.0