From 606ed25a978002e3817d4547dd65d122ec4b60a8 Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 12 Oct 2022 09:03:34 +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/repo/aisafety.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/repo/aisafety.go b/routers/repo/aisafety.go index e6d8cb56c..c350c66f1 100644 --- a/routers/repo/aisafety.go +++ b/routers/repo/aisafety.go @@ -118,7 +118,7 @@ func StopAiSafetyTask(ctx *context.Context) { var ID = ctx.Params(":jobid") task, err := models.GetCloudbrainByIDWithDeleted(ID) result := make(map[string]interface{}) - result["result_code"] = -1 + result["result_code"] = "-1" if err != nil { log.Info("query task error.err=" + err.Error()) log.Error("GetCloudbrainByJobID failed:" + err.Error()) @@ -192,7 +192,7 @@ func StopAiSafetyTask(ctx *context.Context) { log.Info("The job is finished. status=" + task.Status) } } - result["result_code"] = 0 + result["result_code"] = "0" result["msg"] = "succeed" ctx.JSON(200, result)