简要描述:
- 积分数据统计
请求域名:
- http://xx.com
请求URL:
POST/route=survey.survey.point-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
},
{
"name": "充值积分",
"tips": "统计筛选时间内,充值积分总数",
"value": 0
}
],
"chart": {
"use_point": {
"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": "可使用积分"
},
"used_point": {
"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": "已消耗积分"
},
"give_point": {
"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": "已赠送积分"
},
"recharge_point": {
"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": "充值积分"
}
},
"point_data": [
{
"name": "后台充值",
"point_total": "100320.00"
},
{
"name": "团队奖励",
"point_total": "3439.15"
},
{
"name": "经销商提成",
"point_total": "3248.34"
},
{
"name": "其他",
"point_total": "2128.43"
}
]
}
}
错误时返回:
{
"result": 0,
"msg": "获取失败"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
statistic | array | 统计数据 |
point_data | array | 积分获取途径 |
chart | array | 统计图数据 |
statistic返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
name | string | 数据名称 |
tips | string | 数据tip |
value | float | 数据值 |
point_data返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
name | string | 获取方式 |
point_total | float | 积分获取数量 |
chart返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
name | string | 统计图数据名称 |
x_axis | array | X轴数据 |
series | array | Y轴数据 |
备注:
可以按日期搜索的数据都用单独接口获取