简要描述:

  • 排行榜数据接口

请求域名:

  • http://test.yunzshop.com

请求URL:

GET: plugin.ranking.api.index.index

###传输参数:

参数名 是否必须 类型 说明
getSwitch:getSwitch string 默认接口标识
plugin_type:staffLevel string 默认接口标识 分销商识别接口

###返回参数 getSet (认证插件是否开启)

参数名 是否必须 类型 说明
commission int 1 开启
commission_title string 返回分销商插件名称
team_dividend int 1 开启
team_dividend_title string 返回经销商插件名称
staffLevel int 1 开启
staffLevel_title string 返回招商员插件名称
merchantLevel int 1 开启
merchantLevel_title string 返回招商中心插件名称
micro int 1 开启
micro_title string 返回插微店件名称
area_dividend int 1 开启
area_dividend_title string 返回插区域代理件名称
room int 1 开启
room_title string 返回直播插件名称
title string 收益提醒文案
thumb string 收益提醒

###返回参数 getSwitch (staffLevel)(返回分销商数据)

参数名 是否必须 类型 说明
grand_total decimal 累计收益
usable_total decimal 可以提现
countNum int 我的供应商
countOrder decimal 我的门店
rankingCommission string 排行榜
countNO string 个人排行榜
information string ,个人信息

###成功返回

{
    "result": 1,
    "msg": "",
    "data": {
        "getSet": {
            "commission": "1",
            "commission_title": "推客",
            "staffLevel": "1",
            "staffLevel_title": "招商员",
            "merchantLevel": "1",
            "merchantLevel_title": "招商中心",
            "micro": "1",
            "micro_title": "微店",
            "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/K7c1US5t7wzWP5uTxcAU7KZaTA5ukK.png"
        },
        "getSwitch": {
            "grand_total": "346.02",
            "usable_total": "0.00",
            "countNum": 2,
            "countOrder": 3,
            "rankingCommission": {
                "total": 3,
                "per_page": 15,
                "current_page": 1,
                "last_page": 1,
                "next_page_url": null,
                "prev_page_url": null,
                "from": 1,
                "to": 3,
                "data": [
                    {
                        "member_id": 1,
                        "total_amount": "179.20",
                        "status_name": "未结算",
                        "level_name": null,
                        "has_one_member": {
                            "uid": 1,
                            "avatar": "http://wx.qlogo.cn/mmopen/q9dUzwx5OmD4y37koPPmU9TQY18uB4w4T75reS4pzFg566AeHWEPqmDiaiajUvyp0DYsejd6YbG2F6qNEulQFOgTxOqjwfrPkX/132",
                            "nickname": "Joe",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/q9dUzwx5OmD4y37koPPmU9TQY18uB4w4T75reS4pzFg566AeHWEPqmDiaiajUvyp0DYsejd6YbG2F6qNEulQFOgTxOqjwfrPkX/132",
                            "username": "Joe"
                        }
                    },
                    {
                        "member_id": 12,
                        "total_amount": "33.20",
                        "status_name": "未结算",
                        "level_name": null,
                        "has_one_member": {
                            "uid": 12,
                            "avatar": "http://wx.qlogo.cn/mmopen/q9dUzwx5OmDGnkn8ZYBlkkcnqeUiaebgZrF1pznnjuohrZgr3d6uaDHvadKedqhVurmb2sEIB3MfhrsaRtImcLPPPmBNsmFF1/132",
                            "nickname": "肥仔",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/q9dUzwx5OmDGnkn8ZYBlkkcnqeUiaebgZrF1pznnjuohrZgr3d6uaDHvadKedqhVurmb2sEIB3MfhrsaRtImcLPPPmBNsmFF1/132",
                            "username": "肥仔"
                        }
                    },
                    {
                        "member_id": 24,
                        "total_amount": "10.00",
                        "status_name": "未结算",
                        "level_name": null,
                        "has_one_member": {
                            "uid": 24,
                            "avatar": "http://wx.qlogo.cn/mmopen/FibYEcCAgGxYoG8wLnMicZJTbaANwJnuLyVx3iaoRMVspb0qLA7Q9QAYlJ8qsRHZtyRiaNsKxD29hD8WENKhw44eKjc1XHqMBwgs/132",
                            "nickname": "碳酸果汁",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/FibYEcCAgGxYoG8wLnMicZJTbaANwJnuLyVx3iaoRMVspb0qLA7Q9QAYlJ8qsRHZtyRiaNsKxD29hD8WENKhw44eKjc1XHqMBwgs/132",
                            "username": "碳酸果汁"
                        }
                    }
                ]
            },
            "member_amount": {
                "member_id": 1,
                "total_amount": "179.20",
                "status_name": "未结算",
                "level_name": null,
                "has_one_member": {
                    "uid": 1,
                    "avatar": "http://wx.qlogo.cn/mmopen/q9dUzwx5OmD4y37koPPmU9TQY18uB4w4T75reS4pzFg566AeHWEPqmDiaiajUvyp0DYsejd6YbG2F6qNEulQFOgTxOqjwfrPkX/132",
                    "nickname": "Joe",
                    "avatar_image": "https://wx.qlogo.cn/mmopen/q9dUzwx5OmD4y37koPPmU9TQY18uB4w4T75reS4pzFg566AeHWEPqmDiaiajUvyp0DYsejd6YbG2F6qNEulQFOgTxOqjwfrPkX/132",
                    "username": "Joe"
                }
            },
            "countNO": 1
        }
    }
}