From 865614b7ac2a3b2108ba1d8d9e4e84a4817dbd3e Mon Sep 17 00:00:00 2001 From: "mail_yanpeng@163.com" Date: Mon, 3 Dec 2018 16:38:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=B4=E5=83=8F=EF=BC=8Cse?= =?UTF-8?q?ssion=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/FileController.go | 1 + views/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/FileController.go b/controllers/FileController.go index 085b73a..0d526b3 100644 --- a/controllers/FileController.go +++ b/controllers/FileController.go @@ -131,6 +131,7 @@ func (this *FileController) HeadImgUpload() { this.ServeJSON() return } + this.SetSession("headimg", urlDir) this.Data["json"] = models.ReurnData("", urlDir) this.ServeJSON() return diff --git a/views/index.html b/views/index.html index 3d2f2fc..1198786 100644 --- a/views/index.html +++ b/views/index.html @@ -43,7 +43,7 @@
-
+
{{template "footer"}}