From f94eb1b1e837ac4a40cd95ae8205302883f6a710 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 02 八月 2019 10:11:47 +0800
Subject: [PATCH] rm discovery

---
 service/EnableStatusControlService.go |   36 +++++++++++++++++-------------------
 1 files changed, 17 insertions(+), 19 deletions(-)

diff --git a/service/EnableStatusControlService.go b/service/EnableStatusControlService.go
index c9e1ff5..0c760b7 100644
--- a/service/EnableStatusControlService.go
+++ b/service/EnableStatusControlService.go
@@ -2,13 +2,11 @@
 
 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"
@@ -119,23 +117,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,
-			})
-		}
+		//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