class WechatController < Oauth::BaseController def create user = Oauth::CreateOrFindWechatAccountService.call(current_user ,params) successful_authentication(user) render_ok rescue Oauth::CreateOrFindWechatAccountService::Error => ex render_error(ex.message) end end