chore: remove debug codes

This commit is contained in:
RockYang
2023-08-21 10:55:49 +08:00
parent e44f95724d
commit 5a8503ec14
4 changed files with 6 additions and 12 deletions

View File

@@ -4,7 +4,6 @@ import (
"chatplus/core"
"chatplus/service/oss"
"chatplus/utils/resp"
"fmt"
"github.com/gin-gonic/gin"
"gorm.io/gorm"
)
@@ -24,9 +23,9 @@ func NewUploadHandler(app *core.AppServer, db *gorm.DB, manager *oss.UploaderMan
func (h *UploadHandler) Upload(c *gin.Context) {
fileURL, err := h.uploaderManager.GetActiveService().PutFile(c, "file")
if err != nil {
resp.ERROR(c, fmt.Sprintf("文件上传失败: %s", err.Error()))
resp.ERROR(c, err.Error())
return
}
resp.SUCCESS(c, fileURL)
}