From b6bec5f9a73dc85edf0f7c8f90650e81400b918a Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Sat, 13 Aug 2016 21:51:55 +0800 Subject: [PATCH] =?UTF-8?q?wechat=E7=9A=84access=5Ftoken=E8=A2=AB=E5=A4=8D?= =?UTF-8?q?=E7=9B=96=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/wechat/lib/wechat/api_base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?