简要描述:

  • 会员数据统计

请求域名:

  • http://xx.com

请求URL:

POST/route=survey.survey.member-income-statistic

参数:

参数名 类型 是否必须 说明
time_type string 日期类型:day日,week周,month月,不传默认day
start_time int 搜索开始时间戳,不传默认当天开始,根据日期类型不同,传递时间也不同,参考【统计2.0】插件
end_time int 搜索结束时间戳,不传默认当天结束

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "statistic": [
            {
                "name": "总收入",
                "tips": "统计筛选时间内的,所有收入明细总和",
                "value": 0
            },
            {
                "name": "已提现金额",
                "tips": "统计筛选时间内的,所有已提现的收入记录总和",
                "value": 0
            },
            {
                "name": "劳务税总和",
                "tips": "统计筛选时间内的,所有已提现的劳务税总和",
                "value": "0.00"
            },
            {
                "name": "手续费金额",
                "tips": "统计筛选时间内的,所有已提现的手续费总和",
                "value": "0.00"
            },
            {
                "name": "收入笔数",
                "tips": "统计筛选时间内的,收入笔数",
                "value": 0
            }
        ],
        "chart": {
            "amount_total": {
                "series": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                ],
                "x_axis": [
                    "2020/04",
                    "2020/05",
                    "2020/06",
                    "2020/07",
                    "2020/08",
                    "2020/09",
                    "2020/10"
                ],
                "name": "总收入"
            },
            "withdraw_income": {
                "series": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                ],
                "x_axis": [
                    "2020/04",
                    "2020/05",
                    "2020/06",
                    "2020/07",
                    "2020/08",
                    "2020/09",
                    "2020/10"
                ],
                "name": "已提现金额"
            },
            "servicetax_total": {
                "series": [
                    "0.00",
                    "0.00",
                    "0.00",
                    "0.00",
                    "0.00",
                    "0.00",
                    "0.00"
                ],
                "x_axis": [
                    "2020/04",
                    "2020/05",
                    "2020/06",
                    "2020/07",
                    "2020/08",
                    "2020/09",
                    "2020/10"
                ],
                "name": "劳务税金额"
            },
            "poundage_total": {
                "series": [
                    "0.00",
                    "0.00",
                    "0.00",
                    "0.00",
                    "0.00",
                    "0.00",
                    "0.00"
                ],
                "x_axis": [
                    "2020/04",
                    "2020/05",
                    "2020/06",
                    "2020/07",
                    "2020/08",
                    "2020/09",
                    "2020/10"
                ],
                "name": "手续费金额"
            },
            "income_count": {
                "series": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                ],
                "x_axis": [
                    "2020/04",
                    "2020/05",
                    "2020/06",
                    "2020/07",
                    "2020/08",
                    "2020/09",
                    "2020/10"
                ],
                "name": "收入笔数"
            }
        }
    }
}

错误时返回:

  {
    "result": 0,
    "msg": "获取失败"
  }

返回参数说明:

参数名 类型 说明
statistic array 统计数据
chart array 统计图数据

statistic返回参数说明:

参数名 类型 说明
name string 数据名称
tips string 数据tip
value float 数据值

chart返回参数说明:

参数名 类型 说明
name string 统计图数据名称
x_axis array X轴数据
series array Y轴数据

备注:

可以按日期搜索的数据都用单独接口获取