From 8c83ceb9ea8c7248ec4ca2d5177e2855084e4b68 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 24 Apr 2018 18:26:49 +0800 Subject: [PATCH] update token expire time --- routers/account/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/account/account.go b/routers/account/account.go index 41e579e..00e475c 100644 --- a/routers/account/account.go +++ b/routers/account/account.go @@ -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) }