Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/3226/head
zouap 2 years ago
parent
commit
f829bd5f80
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routers/repo/attachment.go

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

@@ -682,6 +682,7 @@ func GetSuccessChunks(ctx *context.Context) {
bucketName := setting.Bucket
storage.ObsCopyFile(bucketName, srcObjectName, bucketName, destObjectName)
}
UpdateModelSize(modeluuid)
ctx.JSON(200, map[string]string{
"uuid": fileChunk.UUID,
"uploaded": strconv.Itoa(fileChunk.IsUploaded),
@@ -690,6 +691,7 @@ func GetSuccessChunks(ctx *context.Context) {
"attachID": strconv.Itoa(int(attachID)),
"fileName": attach.Name,
})
return
} else {
model, err := models.QueryModelById(dbmodeluuid)
if err == nil {
@@ -705,6 +707,7 @@ func GetSuccessChunks(ctx *context.Context) {
"fileName": attach.Name,
"modelName": modelname,
})
return
}
} else {
dataset, err := models.GetDatasetByID(attach.DatasetID)


Loading…
Cancel
Save