Finish the logger maintain things.

This commit is contained in:
zicla
2018-11-30 22:01:31 +08:00
parent 84703a8971
commit 1bdfb4996e
8 changed files with 138 additions and 15 deletions

View File

@ -215,7 +215,6 @@ func (this *UserController) Logout(writer http.ResponseWriter, request *http.Req
//session置为过期
sessionCookie, err := request.Cookie(COOKIE_AUTH_KEY)
if err != nil {
this.logger.Error("找不到任何登录信息")
return this.Success("已经退出登录了!")
}
sessionId := sessionCookie.Value