From 7a3fd488d47685dd9c89aeb077ec86ea4243daec Mon Sep 17 00:00:00 2001 From: liuzx Date: Thu, 15 Dec 2022 11:19:25 +0800 Subject: [PATCH] fix-3393 --- routers/api/v1/repo/cloudbrain.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routers/api/v1/repo/cloudbrain.go b/routers/api/v1/repo/cloudbrain.go index b1602958e..a5ac1873f 100755 --- a/routers/api/v1/repo/cloudbrain.go +++ b/routers/api/v1/repo/cloudbrain.go @@ -771,6 +771,8 @@ func CloudbrainGetLog(ctx *context.APIContext) { content = content + ctx.Data["existStr"].(string) if result["Lines"].(int) == 0 { result["Lines"] = 1 + startLine := ctx.QueryInt("base_line") + result["EndLine"] = startLine + 1 } } }