def METHOD_NAME(self, request):
    """
    微信登录后回调
    """
    if not self.is_weixin_visit(request):
        # TODO 改造为友好页面
        return HttpResponse(_("非微信访问，或应用未启动微信访问"))
    # 验证回调state
    if not self.verify_weixin_oauth_state(request):
        # TODO 改造为友好页面
        return HttpResponse(_("State验证失败"))
    # 验证code有效性
    is_code_valid, base_data = self.verfiy_weixin_oauth_code(request)
    if not is_code_valid:
        # TODO 改造为友好页面
        return HttpResponse(_("登录失败"))
    # 获取用户信息并设置用户
    userinfo = self.get_user_info(base_data)
    logger.info('get_user_info kwargs: %s, result: %s' % (base_data, userinfo))
    userid = userinfo.pop('userid')
    user = BkWeixinUser.objects.get_update_or_create_user(userid, **userinfo)
    # 设置session
    request.session['weixin_user_id'] = user.id
    setattr(request, 'weixin_user', user)
    # need csrftoken
    rotate_token(request)
    # 跳转到用户实际访问URL
    callback_url = self.get_callback_url(request)
    return HttpResponseRedirect(callback_url)