简要描述:

  • 排行榜数据接口

请求域名:

  • http://test.yunzshop.com

请求URL:

GET: plugin.ranking.api.index.index

###传输参数:

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

参数名 是否必须 类型 说明
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": "4.99",
            "usable_total": "0.00",
            "countNum": 13,
            "countOrder": "52105.66",
            "rankingCommission": {
                "total": 122,
                "per_page": 15,
                "current_page": 1,
                "last_page": 9,
                "next_page_url": "http://localhost/addons/yun_shop/api.php?page=2",
                "prev_page_url": null,
                "from": 1,
                "to": 15,
                "data": [
                    {
                        "member_id": 117,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "11093.39",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 550,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "4218.69",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 112,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "2659.89",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 118,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "2535.72",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 138,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "2453.10",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 135,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "2206.31",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 197,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "2090.24",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 350,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "1874.85",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 365,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "1754.40",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 358,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "1604.71",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 113,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "1567.35",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 136,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "1445.48",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 150,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "1364.63",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 359,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "1279.86",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    },
                    {
                        "member_id": 153,
                        "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                        "total_amount": "1074.67",
                        "status_name": "",
                        "pay_status_name": "",
                        "has_one_member": null
                    }
                ]
            },
            "member_amount": {
                "member_id": 1,
                "incometable_type": "Yunshop\\TeamDividend\\models\\TeamDividendModel",
                "total_amount": "4.99",
                "status_name": "",
                "pay_status_name": "",
                "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": 108
        }
    }
}