修改重新获取refresh_token

This commit is contained in:
yuanke 2016-08-14 12:16:30 +08:00
parent 962a62577b
commit 94777a42c4
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ module Mobile
begin
refreshinfo = Wechat.api.web_refresh_access_token(refresh_token)
rescue
info = wechat.web_access_token(session[:wechat_code])
info = Wechat.api.web_access_token(session[:wechat_code])
openid =info["openid"]
access_token =info["access_token"]
if access_token