From eb2c3a8890a0e9695c0cd2bc3b3dc310c6fbcfa9 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期六, 26 十月 2019 11:28:23 +0800 Subject: [PATCH] fix user timeout --- controllers/user.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/controllers/user.go b/controllers/user.go index cc19fb0..463c418 100644 --- a/controllers/user.go +++ b/controllers/user.go @@ -153,7 +153,7 @@ func (uc UserController) SaveAuth(c *gin.Context) { var userEditVo UserEditVo err := c.BindJSON(&userEditVo) - if err !=nil || userEditVo.Id =="" || userEditVo.NewPwd =="" || userEditVo.UserName == "" { + if err !=nil || userEditVo.Id =="" || userEditVo.UserName == "" { util.ResponseFormat(c,code.RequestParamError,"") return } @@ -161,6 +161,7 @@ var api dbapi.UserApi b, d := api.SaveAuth(paramBody) if b { + auth.SetOutUser(userEditVo.Id) util.ResponseFormat(c,code.UpdateSuccess,d) } else { util.ResponseFormat(c,code.UpdateFail,"淇濆瓨澶辫触") -- Gitblit v1.8.0