Commit 555ac834 by lanrion

redis_store提前100秒token过期时间

parent e2cbdb5c
......@@ -19,7 +19,7 @@ module WeixinAuthorize
client.access_token, "expired_at",
client.expired_at
)
weixin_redis.expireat(client.redis_key, client.expired_at.to_i-10) # 提前10秒超时
weixin_redis.expireat(client.redis_key, client.expired_at.to_i-100) # 提前10秒超时
end
def access_token
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment