From 584a509ef7d73038bb530505b3bd236bdbf0b4ac Mon Sep 17 00:00:00 2001 From: "mail_yanpeng@163.com" Date: Sun, 26 Apr 2020 17:05:25 +0800 Subject: [PATCH] =?UTF-8?q?2020.4.26=E8=A1=A5=E4=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/FileController.go | 1 + views/T.footer.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/FileController.go b/controllers/FileController.go index fea8fca..0816318 100644 --- a/controllers/FileController.go +++ b/controllers/FileController.go @@ -33,6 +33,7 @@ func (this *FileController) Upload() { ".jpg": true, ".jpeg": true, ".png": true, + ".gif": true, } if _, ok := AllowExtMap[ext]; !ok { this.Data["json"] = models.ReurnError(500, "后缀名不符合上传要求") diff --git a/views/T.footer.tpl b/views/T.footer.tpl index bad0428..811ea00 100644 --- a/views/T.footer.tpl +++ b/views/T.footer.tpl @@ -9,7 +9,7 @@ 码农笔录-简书