From e0838d7940f8a2c610289dc4edb190abc0ab85a6 Mon Sep 17 00:00:00 2001 From: zouap Date: Fri, 25 Feb 2022 10:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/search.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routers/search.go b/routers/search.go index 4a2e727df..5083792cd 100644 --- a/routers/search.go +++ b/routers/search.go @@ -111,8 +111,9 @@ func searchRepoByLabel(ctx *context.Context, Key string, Page int, PageSize int) log.Info("query es error," + err.Error()) ctx.JSON(200, "") } + } else { + ctx.JSON(200, "") } - ctx.JSON(200, "") } func searchRepo(ctx *context.Context, TableName string, Key string, Page int, PageSize int, OnlyReturnNum bool) {