Browse Source

提交代码

tags/v1.22.7.1
ychao_1983 3 years ago
parent
commit
d532431a02
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      routers/api/v1/repo/cloudbrain.go

+ 2
- 3
routers/api/v1/repo/cloudbrain.go View File

@@ -149,20 +149,19 @@ func GetCloudBrainInferenceJob(ctx *context.APIContext) {

func DelCloudBrainJob(ctx *context.APIContext) {
jobID := ctx.Params(":jobid")
var versionName = ctx.Query("version_name")

errStr := cloudbrain.DelCloudBrainJob(jobID)

if errStr != "" {
ctx.JSON(http.StatusOK, map[string]interface{}{
"message": ctx.Tr(errStr),
"VersionName": versionName,
"VersionName": "1",
"code": 1,
})
} else {
ctx.JSON(http.StatusOK, map[string]interface{}{
"message": "",
"VersionName": versionName,
"VersionName": "1",
"code": 0,
})
}


Loading…
Cancel
Save