def METHOD_NAME(self, callback_url, state='authenticated'):
    """
    获取oauth访问链接
    """
    params = {
        'appid': weixin_settings.WEIXIN_APP_ID,
        'redirect_uri': callback_url,
        'response_type': 'code',
        'scope': weixin_settings.WEIXIN_SCOPE,
        'state': state
    }
    params = urllib.parse.urlencode(params)
    redirect_uri = '%s?%s#wechat_redirect' % (self.WEIXIN_OAUTH_URL, params)
    return redirect_uri