Commit 0c2ead7a by xuzhenhao

增加了注销功能

1 parent 915ee8df
Showing with 6 additions and 0 deletions
...@@ -155,6 +155,12 @@ func UserLogoutApi(c *gin.Context) { ...@@ -155,6 +155,12 @@ func UserLogoutApi(c *gin.Context) {
ReturnRespones(c, "104000", err) ReturnRespones(c, "104000", err)
return return
} }
_, err := CheckRequestToken(token)
if err != nil {
log.Println(err)
ReturnRespones(c, r.(string), err)
return
}
cookie := &http.Cookie{ cookie := &http.Cookie{
Name: "icesimbaToken", Name: "icesimbaToken",
Path: "/", Path: "/",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!