Browse Source

内部IP泄露

tags/v1.22.10.1^2
yanchao 3 years ago
parent
commit
59c37f10fe
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

@@ -639,6 +639,7 @@ func ShowSingleModel(ctx *context.Context) {
if value != nil {
model.UserName = value.Name
model.UserRelAvatarLink = value.RelAvatarLink()
model.TrainTaskInfo = ""
}
}
ctx.JSON(http.StatusOK, models)
@@ -787,6 +788,7 @@ func ShowModelPageInfo(ctx *context.Context) {
for i, model := range modelResult {
model.IsCanOper = isOper(ctx, model.UserId)
model.IsCanDelete = isCanDelete(ctx, model.UserId)
model.TrainTaskInfo = ""
userIds[i] = model.UserId
}



Loading…
Cancel
Save