简要描述:

  • 浏览轨迹首页

请求域名:

  • http://xx.com

请求URL:

POST/plugin.customer-center.frontend.controllers.browse.index

参数:

参数名 是否必须 类型 说明
level_type int 0直推,1间推
date string 日期

返回示例:

正确时返回:

  {
    "result": 1,
    "msg": "ok",
    "data": {
        "visit_data": {
            "all_visit_count": 0,
            "yesterday_visit_count": 0,
            "all_visit_people_count": 0,
            "yesterday_visit_people_count": 0,
            "today_visit_max_count": 0,
            "yesterday_visit_max_count": 0
        },
        "history_data": [
            {
                "people_total": 0,
                "count": 0,
                "date": "09-18"
            },
            {
                "people_total": 0,
                "count": 0,
                "date": "09-19"
            },
            {
                "people_total": 0,
                "count": 0,
                "date": "09-20"
            },
            {
                "people_total": 0,
                "count": 0,
                "date": "09-21"
            }
        ],
        "port_data": [
            {
                "type": 5,
                "name": "wap",
                "total": 0,
                "people": 0
            },
            {
                "type": 1,
                "name": "公众号",
                "total": 0,
                "people": 0
            },
            {
                "type": 2,
                "name": "小程序",
                "total": 0,
                "people": 0
            },
            {
                "type": 17,
                "name": "企业微信",
                "total": 0,
                "people": 0
            },
            {
                "type": 7,
                "name": "app",
                "total": 0,
                "people": 0
            },
            {
                "type": 55,
                "name": "pc",
                "total": 0,
                "people": 0
            }
        ],
        "display_set": {
            "wechat": 1,
            "phone": 0,
            "is_referrer": "1",
            "is_recommend_wechat": "1"
        }
    }
}

visit_data[]返回参数说明:

参数名 类型 说明
all_visit_count int 累计访问次数
yesterday_visit_count int 昨日访问次数
all_visit_people_count int 累计访问人数
yesterday_visit_people_count int 昨日访问人数
today_visit_max_count int 当日最高访问次数
yesterday_visit_max_count int 昨日最高访问次数

history_data[]返回参数说明:

参数名 类型 说明
people_total int 访问人次
count int 范文次数
date string 日期

port_data[]返回参数说明:

参数名 类型 说明
type int 类型
name string 端口名称
total int 访问次数
people int 访问人数

备注:

  • 更多返回错误代码请看首页的错误代码描述