From 77a8f22e0224cab9cee2f32c1310de14a6723287 Mon Sep 17 00:00:00 2001 From: liuzx Date: Thu, 15 Dec 2022 11:34:39 +0800 Subject: [PATCH] fix-3393 --- routers/api/v1/repo/cloudbrain.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routers/api/v1/repo/cloudbrain.go b/routers/api/v1/repo/cloudbrain.go index 2ab733e21..b1602958e 100755 --- a/routers/api/v1/repo/cloudbrain.go +++ b/routers/api/v1/repo/cloudbrain.go @@ -769,6 +769,9 @@ func CloudbrainGetLog(ctx *context.APIContext) { } if ctx.Data["existStr"] != nil && result["Lines"].(int) < 60 { content = content + ctx.Data["existStr"].(string) + if result["Lines"].(int) == 0 { + result["Lines"] = 1 + } } } } else {