jiangshuai
2023-11-08 a69047e1891ef7a3ac9b1dea1c2889c81b29fa22
controllers/attachment.go
@@ -73,7 +73,7 @@
      attachmentList = append(attachmentList, attachment)
      if fileType == constvar.FileType_Picture {
         thumbnailBytes, err := image.CreateThumbnail(fileBytes, 0, 600, 800)
         thumbnailBytes, err := image.CreateThumbnail(fileBytes, 60, 0, 0)
         if err != nil {
            logx.Errorf("file upload err: %v", err)
            util.ResponseFormat(c, code.RequestParamError, "生成缩略图失败:"+err.Error())