diff --git a/app/api/mobile/apis/new_comment.rb b/app/api/mobile/apis/new_comment.rb index 549fd493f..02411c080 100644 --- a/app/api/mobile/apis/new_comment.rb +++ b/app/api/mobile/apis/new_comment.rb @@ -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