Browse Source

fix 1542

tags/v1.22.2.2^2
lewis 3 years ago
parent
commit
ab982c3e40
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      routers/repo/modelarts.go

+ 7
- 5
routers/repo/modelarts.go View File

@@ -257,13 +257,15 @@ func NotebookShow(ctx *context.Context) {
}

var datasetDownloadLink string
if task.Uuid != "" && task.UserID == ctx.User.ID {
attachment, err := models.GetAttachmentByUUID(task.Uuid)
if err == nil {
datasetDownloadLink = attachment.S3DownloadURL()
if ctx.IsSigned {
if task.Uuid != "" && task.UserID == ctx.User.ID {
attachment, err := models.GetAttachmentByUUID(task.Uuid)
if err == nil {
datasetDownloadLink = attachment.S3DownloadURL()
}
}
}
ctx.Data["datasetDownloadLink"] = datasetDownloadLink
ctx.Data["task"] = task
ctx.Data["jobID"] = jobID


Loading…
Cancel
Save