update token expire time

This commit is contained in:
Jay 2018-04-24 18:26:49 +08:00
parent b7c0155444
commit 8c83ceb9ea
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ func UserLogin(c *context.Context) {
return
}
err = memstore.RedisSet("golang", hex.EncodeToString(tByte), string(jsonStr), 600)
err = memstore.RedisSet("golang", hex.EncodeToString(tByte), string(jsonStr), 3600)
if err != nil {
c.ServerError(nil)
}