diff --git a/controllers/UserController.go b/controllers/UserController.go index dcdaa93..7b00f5a 100644 --- a/controllers/UserController.go +++ b/controllers/UserController.go @@ -123,19 +123,9 @@ func (this *UserController) Edit() { this.ServeJSON() return } - birthday := this.GetString("birthday") - if birthday != "" { - birthday += " 00:00:00" - if localTime, errt := time.ParseInLocation("2006-01-02 15:04:05", birthday, time.Local); errt == nil { - user.Birthday = localTime - } - } user.NickName = this.GetString("nickName") user.Email = this.GetString("email") user.Mobile = this.GetString("mobile") - user.QQ = this.GetString("qqnum") - user.Sex, _ = this.GetInt("catory") - user.DescInfo = this.GetString("mdesc") if _, err := userService.EditUser(user); err != nil { this.Data["json"] = models.ReurnError(500, "") } else { diff --git a/views/T.header.tpl b/views/T.header.tpl index 1f8545b..25b03eb 100644 --- a/views/T.header.tpl +++ b/views/T.header.tpl @@ -10,12 +10,12 @@ {{end}} + + - + - + - - {{end}} \ No newline at end of file diff --git a/views/T.nav.tpl b/views/T.nav.tpl index 6105611..95e9842 100644 --- a/views/T.nav.tpl +++ b/views/T.nav.tpl @@ -21,7 +21,7 @@ {{if .IsLogin }}