Browse Source

提交测试代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1^2
zouap 4 years ago
parent
commit
949a68ece5
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      routers/repo/ai_model_manage.go

+ 3
- 2
routers/repo/ai_model_manage.go View File

@@ -192,11 +192,12 @@ func DownloadSingleModelFile(ctx *context.Context) {
} }


func ShowSingleModel(ctx *context.Context) { func ShowSingleModel(ctx *context.Context) {

id := ctx.Params(":ID")
log.Info("Show single ModelInfo start.") log.Info("Show single ModelInfo start.")
id := ctx.Query("ID")
task, err := models.QueryModelById(id) task, err := models.QueryModelById(id)
if err != nil { if err != nil {
log.Error("no such model!", ctx.Data["msgID"])
log.Error("no such model!", err.Error())
ctx.ServerError("no such model:", err) ctx.ServerError("no such model:", err)
return return
} }


Loading…
Cancel
Save