Browse Source

提交代码,解决问题。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.11.2^2
zouap 3 years ago
parent
commit
4887c89c89
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      routers/repo/attachment_model.go

+ 2
- 4
routers/repo/attachment_model.go View File

@@ -144,13 +144,11 @@ func GetModelChunks(ctx *context.Context) {
if dbmodeluuid != modeluuid {
log.Info("The file has uploaded.fileChunk.ObjectName=" + fileChunk.ObjectName + " typeCloudBrain=" + fmt.Sprint(typeCloudBrain))
isExist := copyModelAttachmentFile(typeCloudBrain, fileChunk, fileName, modeluuid)
if dbmodeluuid != "" {
model, err := models.QueryModelById(dbmodeluuid)
if isExist {
model, err := models.QueryModelById(modeluuid)
if err == nil && model != nil {
modelname = model.Name
}
}
if isExist {
ctx.JSON(200, map[string]string{
"uuid": fileChunk.UUID,
"uploaded": strconv.Itoa(fileChunk.IsUploaded),


Loading…
Cancel
Save