修改重新获取refresh_token
This commit is contained in:
parent
962a62577b
commit
94777a42c4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue