Skip to content

Commit

Permalink
fixed bug when appid or app secret invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
lanrion committed Mar 28, 2014
1 parent 8050165 commit 176aaeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weixin_authorize/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def authenticate_with_redis
def set_access_token_for_client(access_token_infos=nil)
token_infos = access_token_infos || http_get_access_token
self.access_token = token_infos["access_token"]
self.expired_at = Time.now.to_i + token_infos["expires_in"]
self.expired_at = Time.now.to_i + token_infos["expires_in"].to_i
end

def http_get_access_token
Expand Down

0 comments on commit 176aaeb

Please sign in to comment.