def get_cookie_dict(cookie):
    """
    转换 Raw 格式的 Cookie 为字典格式
    """
    params = {}
    cookie = cookie.strip()
    if cookie.startswith('Cookie:'):
        cookie = cookie[7:].strip()
    for param in cookie.split(';'):
        k, v = param.split('=')
        params[k.strip()] = v.strip()
    return params
