From e87b04d7f9d6b25c858d421432bed5443f91b9df Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期一, 16 九月 2019 11:10:34 +0800 Subject: [PATCH] update goffmpeg and capture --- service/EnableStatusControlService.go | 23 ++++++++++++++++++++--- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/service/EnableStatusControlService.go b/service/EnableStatusControlService.go index a7dae12..301859a 100644 --- a/service/EnableStatusControlService.go +++ b/service/EnableStatusControlService.go @@ -9,7 +9,7 @@ "time" "webserver/extend/config" "webserver/extend/esutil" - "webserver/extend/logger" + "basic.com/valib/logger.git" ) func GetVerificationData() []map[string]interface{} { @@ -17,7 +17,7 @@ "/" + config.EsInfo.EsIndex.DbTables.IndexName + "/_search" var setApi dbapi.SysSetApi _, sysconf := setApi.GetServerInfo() - jsonDsl := `{ + jsonDSL := `{ "query": { "bool": { "filter": [{ @@ -36,7 +36,7 @@ "size": 10000 } ` - buf, err := esutil.EsReq("POST", url, []byte(jsonDsl)) + buf, err := esutil.EsReq("POST", url, []byte(jsonDSL)) if err != nil { logger.Debug(err) } @@ -117,6 +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, + // }) + //} message = "淇敼鎴愬姛" } return message -- Gitblit v1.8.0