简要描述:
- 收入统计接口
请求域名:
- http://test.yunzshop.com
请求URL:
GET/app/index.php?i=6&c=entry&do=shop&m=yun_shop&route=finance.income.get-income-count
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
i | 是 | int | 店铺ID |
status | 否 | int | 状态 为空 全部收入 0 未提现 ,1 已提现 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取数据成功!",
"data": {
"total": {
"title": "推广收入",
"type": "total",
"type_name": "推广佣金",
"income": 8814.5
},
"commission": {
"title": "分销商",
"ico": "ico-commission",
"type": "commission",
"type_name": "分销佣金",
"income": 8814.5
}
}
}
错误时返回:
{
"result": 0,
"msg": "未检测到数据!",
"data": {}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
total | array | 总收入统计 |
commission | array | 分销收入 |
commission参数说明:
参数名 | 类型 | 说明 |
---|---|---|
title | string | 插件名称 |
ico | string | 图标 |
type | string | 类型 |
type_name | string | 类型名称 |
income | float | 收入金额 |
备注:
- 更多返回错误代码请看首页的错误代码描述