Commit df39c69c by xuzhenhao

增加了token的授权

1 parent 1d59576d
Showing with 2 additions and 2 deletions
......@@ -48,8 +48,8 @@ func UserLoginApi(c *gin.Context) {
Path: "/",
HttpOnly: true,
}
res := map[string]string{
"user_id": result.(map[string]interface{})["user_id"].(string),
res := map[string]interface{}{
"user_id": result.(map[string]interface{})["user_id"].(int),
}
http.SetCookie(c.Writer, cookie)
ReturnRespones(c, "0", res)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!