Browse Source

修改Bug,提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
0fa5942fc7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/repo/ai_model_convert.go

+ 2
- 0
routers/repo/ai_model_convert.go View File

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


Loading…
Cancel
Save