我是弱智
This commit is contained in:
parent
02b24543e3
commit
2c02bd4e09
2
Makefile
2
Makefile
|
|
@ -1,4 +1,4 @@
|
||||||
TAG ?= v1.1.13
|
TAG ?= v1.1.14
|
||||||
IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:$(TAG)
|
IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:$(TAG)
|
||||||
|
|
||||||
build: export CGO_ENABLED=0
|
build: export CGO_ENABLED=0
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ func GetPostOrDeleteFile(c *gin.Context) {
|
||||||
c.FileAttachment(filePath, fileName)
|
c.FileAttachment(filePath, fileName)
|
||||||
} else if c.Request.Method == http.MethodPost {
|
} else if c.Request.Method == http.MethodPost {
|
||||||
file, err := c.FormFile("file")
|
file, err := c.FormFile("file")
|
||||||
if err == nil {
|
if err != nil {
|
||||||
log.WithError(err).Error("GetPostOrDeleteFile: Cannot get file")
|
log.WithError(err).Error("GetPostOrDeleteFile: Cannot get file")
|
||||||
c.JSON(http.StatusBadRequest, gin.H{"ok": false, "msg": err})
|
c.JSON(http.StatusBadRequest, gin.H{"ok": false, "msg": err})
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue