简要描述:

  • 排行榜数据接口

请求域名:

  • http://test.yunzshop.com

请求URL:

GET: plugin.ranking.api.index.index

###传输参数:

参数名 是否必须 类型 说明
getSwitch:getSwitch string 默认接口标识
plugin_type:commission 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 (commission)(返回分销商数据)

参数名 是否必须 类型 说明
grand_total decimal 累计收益
usable_total decimal 可以提现
countNum int 我的客户
countOrder decimal 分销订单
rankingCommission string 排行榜
countNO string 个人排行榜
information string ,个人信息

###成功返回

{
    "result": 1,
    "msg": "",
    "data": {
        "getSet": "",
        "getSwitch": {
            "grand_total": "1787.53",
            "usable_total": "657.50",
            "countNum": 7,
            "countOrder": 264,
            "rankingCommission": {
                "total": 14,
                "per_page": 15,
                "current_page": 1,
                "last_page": 1,
                "next_page_url": null,
                "prev_page_url": null,
                "from": 1,
                "to": 14,
                "data": [
                    {
                        "member_id": 36,
                        "total_amount": "20105.50",
                        "has_one_members": {
                            "uid": 36,
                            "avatar": "http://wx.qlogo.cn/mmopen/yFAViaTLylmttibFETWbFbueOIBdMaAJtmAbvCzqQLE3zVJg40l5N8lf5V5IqxVj61noGmZxicZr9m3MLkzyjKdevI82icz3x9zJ/0",
                            "nickname": "麦兜兜",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/yFAViaTLylmttibFETWbFbueOIBdMaAJtmAbvCzqQLE3zVJg40l5N8lf5V5IqxVj61noGmZxicZr9m3MLkzyjKdevI82icz3x9zJ/0",
                            "username": "麦兜兜"
                        }
                    },
                    {
                        "member_id": 12,
                        "total_amount": "20070.00",
                        "has_one_members": {
                            "uid": 12,
                            "avatar": "http://wx.qlogo.cn/mmopen/q9dUzwx5OmDGnkn8ZYBlkkcnqeUiaebgZrF1pznnjuohrZgr3d6uaDHvadKedqhVurmb2sEIB3MfhrsaRtImcLPPPmBNsmFF1/132",
                            "nickname": "肥仔",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/q9dUzwx5OmDGnkn8ZYBlkkcnqeUiaebgZrF1pznnjuohrZgr3d6uaDHvadKedqhVurmb2sEIB3MfhrsaRtImcLPPPmBNsmFF1/132",
                            "username": "肥仔"
                        }
                    },
                    {
                        "member_id": 1,
                        "total_amount": "1787.53",
                        "has_one_members": {
                            "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": 24,
                        "total_amount": "1611.10",
                        "has_one_members": {
                            "uid": 24,
                            "avatar": "http://wx.qlogo.cn/mmopen/FibYEcCAgGxYoG8wLnMicZJTbaANwJnuLyVx3iaoRMVspb0qLA7Q9QAYlJ8qsRHZtyRiaNsKxD29hD8WENKhw44eKjc1XHqMBwgs/132",
                            "nickname": "碳酸果汁",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/FibYEcCAgGxYoG8wLnMicZJTbaANwJnuLyVx3iaoRMVspb0qLA7Q9QAYlJ8qsRHZtyRiaNsKxD29hD8WENKhw44eKjc1XHqMBwgs/132",
                            "username": "碳酸果汁"
                        }
                    },
                    {
                        "member_id": 17,
                        "total_amount": "469.90",
                        "has_one_members": {
                            "uid": 17,
                            "avatar": "",
                            "nickname": "cc",
                            "avatar_image": "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/01/u1TuWe8TE9G8ubSxBecU38E9WP8pbG.jpg",
                            "username": "cc"
                        }
                    },
                    {
                        "member_id": 35,
                        "total_amount": "183.50",
                        "has_one_members": {
                            "uid": 35,
                            "avatar": "http://wx.qlogo.cn/mmopen/q9dUzwx5OmA2Wf9ia3NZu5HC0cmIycAjfDbbkoDfJrxZ9Vjj4hicoPRNqYjAlY0riaRySJibnhMKzf9ntiadniavr2plyOQlPR8bS9/132",
                            "nickname": "huan",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/q9dUzwx5OmA2Wf9ia3NZu5HC0cmIycAjfDbbkoDfJrxZ9Vjj4hicoPRNqYjAlY0riaRySJibnhMKzf9ntiadniavr2plyOQlPR8bS9/132",
                            "username": "huan"
                        }
                    },
                    {
                        "member_id": 5,
                        "total_amount": "89.00",
                        "has_one_members": {
                            "uid": 5,
                            "avatar": "http://wx.qlogo.cn/mmopen/vi_32/zs9mjh65RUyAyEH9GEKakpokzf6askhga7sKkaqjhT7M13XhbciaEq7CoDicVEN7ut3zC9dCmvlfiaCpNX8v4E1QA/0",
                            "nickname": "Lily",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/vi_32/zs9mjh65RUyAyEH9GEKakpokzf6askhga7sKkaqjhT7M13XhbciaEq7CoDicVEN7ut3zC9dCmvlfiaCpNX8v4E1QA/0",
                            "username": "Lily"
                        }
                    },
                    {
                        "member_id": 40,
                        "total_amount": "71.70",
                        "has_one_members": {
                            "uid": 40,
                            "avatar": "http://wx.qlogo.cn/mmhead/Q3auHgzwzM5DEoD1zIHibvucNzVCUJJicxo0wwiapqsfvlLibq1mIR7cPg/0",
                            "nickname": "AAAAA",
                            "avatar_image": "https://wx.qlogo.cn/mmhead/Q3auHgzwzM5DEoD1zIHibvucNzVCUJJicxo0wwiapqsfvlLibq1mIR7cPg/0",
                            "username": "AAAAA"
                        }
                    },
                    {
                        "member_id": 62,
                        "total_amount": "43.00",
                        "has_one_members": {
                            "uid": 62,
                            "avatar": "http://wx.qlogo.cn/mmopen/PamdECAHgrhwg1us7EZq2h9KIj0HQibBkUmicicUVo0sgfPwXu79sibzxJDDLibU6jdc4Vq3BGjrrSQZAEHJzTfiaicBbFe6vTVibHzt/132",
                            "nickname": "芸众售后服务",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/PamdECAHgrhwg1us7EZq2h9KIj0HQibBkUmicicUVo0sgfPwXu79sibzxJDDLibU6jdc4Vq3BGjrrSQZAEHJzTfiaicBbFe6vTVibHzt/132",
                            "username": "芸众售后服务"
                        }
                    },
                    {
                        "member_id": 53,
                        "total_amount": "40.00",
                        "has_one_members": {
                            "uid": 53,
                            "avatar": "http://wx.qlogo.cn/mmopen/IJdPq631CVHJOk0tmPc5AocN9sNSVqHXS4HTUUUa2dEXHh6v5ACp8NYwtJibYxzFltPKCaoICoyhoht7VHPMMMLrrXKCMbDibe/132",
                            "nickname": "芸众商城",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/IJdPq631CVHJOk0tmPc5AocN9sNSVqHXS4HTUUUa2dEXHh6v5ACp8NYwtJibYxzFltPKCaoICoyhoht7VHPMMMLrrXKCMbDibe/132",
                            "username": "芸众商城"
                        }
                    },
                    {
                        "member_id": 27,
                        "total_amount": "32.42",
                        "has_one_members": {
                            "uid": 27,
                            "avatar": "http://dev3.yunzshop.com/addons/yun_shop/static/images/photo-mr.jpg",
                            "nickname": "18646588292",
                            "avatar_image": "http://localhost/addons/yun_shop/static/images/photo-mr.jpg",
                            "username": "18646588292"
                        }
                    },
                    {
                        "member_id": 58,
                        "total_amount": "30.00",
                        "has_one_members": {
                            "uid": 58,
                            "avatar": "http://wx.qlogo.cn/mmopen/vi_32/glMH9jUOFS80ZVp2qFk0Wf5coo9BAcJlQrQhoLOrwicOx6x4kSmcbtsRicZBXQz8kV3t4fSjZyCBNR7k5cHp9LJQ/0",
                            "nickname": "吃苹果的猴子",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/vi_32/glMH9jUOFS80ZVp2qFk0Wf5coo9BAcJlQrQhoLOrwicOx6x4kSmcbtsRicZBXQz8kV3t4fSjZyCBNR7k5cHp9LJQ/0",
                            "username": "吃苹果的猴子"
                        }
                    },
                    {
                        "member_id": 18,
                        "total_amount": "20.00",
                        "has_one_members": {
                            "uid": 18,
                            "avatar": "http://wx.qlogo.cn/mmopen/q9dUzwx5OmCVeRU5kjl4tavwEGbJCe78M9caGUUBHMIV8fwX8njVq3quhic3PgS02rwVREC7ympGYz9ZS8180Aq86gBkZefkK/132",
                            "nickname": "李一天",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/q9dUzwx5OmCVeRU5kjl4tavwEGbJCe78M9caGUUBHMIV8fwX8njVq3quhic3PgS02rwVREC7ympGYz9ZS8180Aq86gBkZefkK/132",
                            "username": "李一天"
                        }
                    },
                    {
                        "member_id": 37,
                        "total_amount": "1.50",
                        "has_one_members": {
                            "uid": 37,
                            "avatar": "http://wx.qlogo.cn/mmopen/yFAViaTLylmsKMH5jQdDIEOVRTJCMNRzATFskRbCYdcibibdbzvyDCk5YhcwfNm0ic5JEZRHsEymy3ACP6fSB3QoZtgDMe3uOaMt/132",
                            "nickname": "芸众售后支持namely",
                            "avatar_image": "https://wx.qlogo.cn/mmopen/yFAViaTLylmsKMH5jQdDIEOVRTJCMNRzATFskRbCYdcibibdbzvyDCk5YhcwfNm0ic5JEZRHsEymy3ACP6fSB3QoZtgDMe3uOaMt/132",
                            "username": "芸众售后支持namely"
                        }
                    }
                ]
            },
            "member_amount": {
                "member_id": 1,
                "total_amount": "1787.53"
            },
            "countNO": 3,
            "information": {
                "uid": 1,
                "avatar": "http://wx.qlogo.cn/mmopen/q9dUzwx5OmD4y37koPPmU9TQY18uB4w4T75reS4pzFg566AeHWEPqmDiaiajUvyp0DYsejd6YbG2F6qNEulQFOgTxOqjwfrPkX/132",
                "nickname": "Joe",
                "avatar_image": "https://wx.qlogo.cn/mmopen/q9dUzwx5OmD4y37koPPmU9TQY18uB4w4T75reS4pzFg566AeHWEPqmDiaiajUvyp0DYsejd6YbG2F6qNEulQFOgTxOqjwfrPkX/132",
                "username": "Joe"
            }
        }
    }
}