From 86655db5ef2cca9d7cf4eedae879c3a7c4464b9f Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期六, 26 十月 2019 16:10:08 +0800 Subject: [PATCH] func GetAllLocalVideopersonsId get all when analyServerId is null --- EsApi.go | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/EsApi.go b/EsApi.go index 48b3ab9..391f9e6 100644 --- a/EsApi.go +++ b/EsApi.go @@ -327,12 +327,12 @@ //浣跨敤es搴曞眰鏈哄埗澶勭悊鍒嗛〉 + analyServerFilterStr := "" analyServerId := compareArgs.AnalyServerId - if analyServerId == "" { - fmt.Println("no analyServerId") - return + if analyServerId != "" { + analyServerFilterStr = "{\"term\":{\"analyServerId\":\"" + analyServerId + "\"}}," } - analyServerFilterStr := "{\"term\":{\"analyServerId\":\"" + analyServerId + "\"}}," + //棣栨璇锋眰澶� url := "http://" + serverIp + ":" + serverPort + -- Gitblit v1.8.0