API接口文档

数据统计

创建于 2021-10-19 / 895
字体: [默认] [大] [更大]

简要描述

数据统计

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-09-29

请求URL

plugins/index&pluginsname=membershiplevelvip&pluginscontrol=statistics&pluginsaction=index

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application string web 请求应用、参考公共中详解
application_client_type string pc 请求客户端、参考公共中详解
token string token

请求参数

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "user_total": {
            "user_count": 2,
            "valid_user_count": 1
        },
        "user_profit_stay_price": "0.02",
        "user_profit_already_price": "0.00",
        "user_profit_total_price": "0.02",
        "profit_chart": {
            "name_arr": [
                "2021-10-05",
                "2021-10-06",
                "2021-10-07",
                "2021-10-08",
                "2021-10-09",
                "2021-10-10",
                "2021-10-11",
                "2021-10-12",
                "2021-10-13",
                "2021-10-14",
                "2021-10-15",
                "2021-10-16",
                "2021-10-17",
                "2021-10-18",
                "2021-10-19"
            ],
            "data": [
                "0.00",
                "0.00",
                "0.00",
                "0.00",
                "0.00",
                "0.00",
                "0.00",
                "0.00",
                "0.00",
                "0.00",
                "0.00",
                "0.00",
                "0.00",
                "0.00",
                "0.02"
            ]
        },
        "user_chart": {
            "name_arr": [
                "2021-10-05",
                "2021-10-06",
                "2021-10-07",
                "2021-10-08",
                "2021-10-09",
                "2021-10-10",
                "2021-10-11",
                "2021-10-12",
                "2021-10-13",
                "2021-10-14",
                "2021-10-15",
                "2021-10-16",
                "2021-10-17",
                "2021-10-18",
                "2021-10-19"
            ],
            "data": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                1
            ]
        }
    }
}

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

参数名 是否必须 类型 描述
user_total array 用户统计信息
user_profit_vaild_price string 待结算
user_profit_already_price string 已结算
user_profit_total_price string 返佣总额
profit_chart string 收益统计图表
user_chart string 用户统计图表

备注

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

1 人点赞过