diff --git a/lib/wechat/lib/wechat/api_base.rb b/lib/wechat/lib/wechat/api_base.rb index 72b169829..1fa3c4f7b 100644 --- a/lib/wechat/lib/wechat/api_base.rb +++ b/lib/wechat/lib/wechat/api_base.rb @@ -42,7 +42,7 @@ module Wechat def with_access_token(params = {}, tries = 2) params ||= {} - yield(params.merge(access_token: access_token.token)) + yield(params.reverse_merge(access_token: access_token.token)) rescue AccessTokenExpiredError access_token.refresh retry unless (tries -= 1).zero?