我是弱智

This commit is contained in:
w-mj 2023-03-13 22:08:08 +08:00
parent 02b24543e3
commit 2c02bd4e09
No known key found for this signature in database
GPG Key ID: 3A2CB5BE2F835897
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
TAG ?= v1.1.13
TAG ?= v1.1.14
IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:$(TAG)
build: export CGO_ENABLED=0

View File

@ -35,7 +35,7 @@ func GetPostOrDeleteFile(c *gin.Context) {
c.FileAttachment(filePath, fileName)
} else if c.Request.Method == http.MethodPost {
file, err := c.FormFile("file")
if err == nil {
if err != nil {
log.WithError(err).Error("GetPostOrDeleteFile: Cannot get file")
c.JSON(http.StatusBadRequest, gin.H{"ok": false, "msg": err})
return