Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.10.1^2
zouap 3 years ago
parent
commit
606ed25a97
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/aisafety.go

+ 2
- 2
routers/repo/aisafety.go View File

@@ -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)



Loading…
Cancel
Save