使用 ``request.get`` 从指定 url 获取数据

    :param params: ``输入参数, 可为空``
    :type params: dict
    :param url: ``接口地址``
    :type url:
    :param to: ``响应超时返回时间``
    :type to:
    :return: ``接口返回的数据``
    :rtype: dict

def do_get(url, params, to=3):
    """
    使用 ``request.get`` 从指定 url 获取数据

    :param params: ``输入参数, 可为空``
    :type params: dict
    :param url: ``接口地址``
    :type url:
    :param to: ``响应超时返回时间``
    :type to:
    :return: ``接口返回的数据``
    :rtype: dict
    """
    try:
        rs = requests.get(url, params=params, timeout=to)
        if rs.status_code == 200:
            try:
                return rs.json()
            except Exception as __e:
                # log.error(__e)
                return rs.text
    except Exception as er:
        log.error('get {} ({}) with err: {}'.format(url, params, er))
        time.sleep(0.5)
    return {}