Browse Source

提交代码

tags/v1.22.11.2^2
ychao_1983 3 years ago
parent
commit
636c6909d3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routers/api/v1/repo/cloudbrain.go

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

@@ -16,6 +16,8 @@ import (
"strings"
"time"

cloudbrainService "code.gitea.io/gitea/services/cloudbrain"

"code.gitea.io/gitea/modules/convert"

"code.gitea.io/gitea/services/cloudbrain/cloudbrainTask"
@@ -72,6 +74,7 @@ func CloudBrainShow(ctx *context.APIContext) {
} else if task.Type == models.TypeC2Net {
task.Image = task.EngineName
}
task.AiCenter = cloudbrainService.GetAiCenterShow(task.AiCenter, ctx.Context)

ctx.JSON(http.StatusOK, models.BaseMessageWithDataApi{Code: 0, Message: "", Data: convert.ToCloudBrain(task)})



Loading…
Cancel
Save