Browse Source

提交评测代码。

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

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

@@ -271,7 +271,7 @@ func DownloadMultiModelFile(ctx *context.Context) {
return
}
if !isOper(ctx, task.UserId) {
ctx.ServerError("no right.", errors.New(ctx.Tr("repo.model_noright")))
ctx.NotFound(ctx.Req.URL.RequestURI(), nil)
return
}

@@ -553,7 +553,7 @@ func isOper(ctx *context.Context, modelUserId int64) bool {
func ShowModelPageInfo(ctx *context.Context) {
log.Info("ShowModelInfo start.")
if !isQueryRight(ctx) {
ctx.ServerError("no right.", errors.New(ctx.Tr("repo.model_noright")))
ctx.NotFound(ctx.Req.URL.RequestURI(), nil)
return
}
page := ctx.QueryInt("page")


Loading…
Cancel
Save