Browse Source

提交代码

tags/v1.22.3.2^2
ychao_1983 4 years ago
parent
commit
fbe28851c1
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      routers/repo/attachment.go

+ 4
- 0
routers/repo/attachment.go View File

@@ -814,6 +814,9 @@ func CompleteMultipart(ctx *context.Context) {
typeCloudBrain := ctx.QueryInt("type") typeCloudBrain := ctx.QueryInt("type")
fileName := ctx.Query("file_name") fileName := ctx.Query("file_name")


log.Warn("uuid:" + uuid)
log.Warn("typeCloudBrain:" + strconv.Itoa(typeCloudBrain))

err := checkTypeCloudBrain(typeCloudBrain) err := checkTypeCloudBrain(typeCloudBrain)
if err != nil { if err != nil {
ctx.ServerError("checkTypeCloudBrain failed", err) ctx.ServerError("checkTypeCloudBrain failed", err)
@@ -852,6 +855,7 @@ func CompleteMultipart(ctx *context.Context) {
return return
} }
dataset, _ := models.GetDatasetByID(ctx.QueryInt64("dataset_id")) dataset, _ := models.GetDatasetByID(ctx.QueryInt64("dataset_id"))
log.Warn("insert attachment to datasetId:" + strconv.FormatInt(dataset.ID, 10))
attachment, err := models.InsertAttachment(&models.Attachment{ attachment, err := models.InsertAttachment(&models.Attachment{
UUID: uuid, UUID: uuid,
UploaderID: ctx.User.ID, UploaderID: ctx.User.ID,


Loading…
Cancel
Save