Commit 5c108307 by wikimo Committed by lanrion

[wikimo] fix object store token expired error in issue #87 (#89)

parent bdfb26e9
...@@ -89,7 +89,7 @@ module WeixinAuthorize ...@@ -89,7 +89,7 @@ module WeixinAuthorize
end end
def calculate_expire(expires_in) def calculate_expire(expires_in)
Time.now + expires_in.to_i - key_expired Time.now.to_i + expires_in.to_i - key_expired.to_i
end end
end end
......
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