|
|
|
@@ -101,6 +101,7 @@ func SaveModelConvert(ctx *context.Context) { |
|
|
|
if err == nil { |
|
|
|
for _, convert := range convertList { |
|
|
|
if convert.Name == name { |
|
|
|
log.Info("convert.Name=" + name + " convert.id=" + convert.ID) |
|
|
|
ctx.JSON(200, map[string]string{ |
|
|
|
"result_code": "1", |
|
|
|
"message": ctx.Tr("repo.modelconvert.manage.create_error1"), |
|
|
|
@@ -108,6 +109,7 @@ func SaveModelConvert(ctx *context.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
if isRunningTask(convert.Status) { |
|
|
|
log.Info("convert.Status=" + convert.Status + " convert.id=" + convert.ID) |
|
|
|
ctx.JSON(200, map[string]string{ |
|
|
|
"result_code": "1", |
|
|
|
"message": ctx.Tr("repo.modelconvert.manage.create_error2"), |
|
|
|
|