From 2107266fd2f436a9cdf5bc538950eb4f0f9a1a07 Mon Sep 17 00:00:00 2001 From: linxiaozhi Date: Sat, 16 Feb 2019 23:41:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=B8=AA=E4=BA=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=BC=96=E8=BE=91=E6=B7=BB=E5=8A=A0=E9=92=89=E9=92=89?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/user.go | 2 ++ views/user/edit.html | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/controllers/user.go b/controllers/user.go index 8f42576..dce8e59 100644 --- a/controllers/user.go +++ b/controllers/user.go @@ -29,6 +29,7 @@ func (self *UserController) Edit() { row["real_name"] = Admin.RealName row["phone"] = Admin.Phone row["email"] = Admin.Email + row["dingtalk"] = Admin.Dingtalk self.Data["admin"] = row self.display() } @@ -44,6 +45,7 @@ func (self *UserController) AjaxSave() { Admin.RealName = strings.TrimSpace(self.GetString("real_name")) Admin.Phone = strings.TrimSpace(self.GetString("phone")) Admin.Email = strings.TrimSpace(self.GetString("email")) + Admin.Dingtalk = strings.TrimSpace(self.GetString("dingtalk")) resetPwd := self.GetString("reset_pwd") if resetPwd == "1" { diff --git a/views/user/edit.html b/views/user/edit.html index baf6de2..f4edd1e 100644 --- a/views/user/edit.html +++ b/views/user/edit.html @@ -33,6 +33,12 @@
*
+
+ +
+ +
+