dustoair 3 years ago
parent 3598ed3c45
commit 257ca56e3e

@ -52,6 +52,7 @@ func (a *ImageController) UploadNiupic(c *gin.Context) {
resultRes.Error(1, "图片上传失败") resultRes.Error(1, "图片上传失败")
} }
os.Remove(subfilepath) os.Remove(subfilepath)
log.Println("url:", url)
c.JSON(200, gin.H{ c.JSON(200, gin.H{
"code": 200, "code": 200,
"msg": "ok", "msg": "ok",

Loading…
Cancel
Save