Browse Source

模型转换界面交互。

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

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

@@ -725,6 +725,7 @@ func isOper(ctx *context.Context, modelUserId int64) bool {
func ShowModelConvertPageInfo(ctx *context.Context) { func ShowModelConvertPageInfo(ctx *context.Context) {
log.Info("ShowModelConvertInfo start.") log.Info("ShowModelConvertInfo start.")
if !isQueryRight(ctx) { if !isQueryRight(ctx) {
log.Info("no right.")
ctx.NotFound(ctx.Req.URL.RequestURI(), nil) ctx.NotFound(ctx.Req.URL.RequestURI(), nil)
return return
} }
@@ -745,6 +746,7 @@ func ShowModelConvertPageInfo(ctx *context.Context) {
RepoID: repoId, RepoID: repoId,
}) })
if err != nil { if err != nil {
log.Info("query db error." + err.Error())
ctx.ServerError("Cloudbrain", err) ctx.ServerError("Cloudbrain", err)
return return
} }


Loading…
Cancel
Save