简要描述:

  • 权限列表

请求域名:

  • http://xx.com

请求URL:

GET:plugin.universal-card.api.home.getLevel

传输参数:

参数名 是否必须 类型 说明
level_id int 等级id

购买指定商品升级,返回参数

{
    "result": 1,
    "msg": "获取成功",
    "data": {
        "member_level": {
            "id": 2,
            "uniacid": 3,
            "level": 1,
            "level_name": "铁牌会员",
            "order_money": "2000",
            "order_count": "5",
            "goods_id": "96",
            "discount": "",
            "created_at": "2017-09-18 17:49:33",
            "updated_at": "2018-12-24 16:03:17",
            "deleted_at": null,
            "is_default": 0,
            "validity": 30,
            "freight_reduction": "",
            "interests_rules": null,
            "description": null,
            "team_performance": null,
            "goods": [
                {
                    "id": 96,
                    "price": "1.00",
                    "status_name": null
                }
            ]
        }
    }
}

会员权限列表,返回参数

{
    "result": 1,
    "msg": "获取成功",
    "data": {
        "member_level": [
            {
                "id": 2,
                "level_name": "铁牌会员",
                "level": 1,
                "discount": "",
                "goods_id": "96",
                "validity": 30,
                "has_one_universal_level": {
                    "thumb": "images/3/2018/01/EZxXZl7L1EzmBnHC077a3xmmT06L7F.jpg",
                    "member_level_id": 2,
                    "goods_spec": "a:2:{s:10:\"option_141\";s:2:\"30\";s:10:\"option_142\";s:2:\"60\";}",
                    "thumb_image": "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/01/EZxXZl7L1EzmBnHC077a3xmmT06L7F.jpg"
                }
            },
            {
                "id": 4,
                "level_name": "等级二",
                "level": 2,
                "discount": "9",
                "goods_id": "0",
                "validity": 0,
                "has_one_universal_level": null
            },
            {
                "id": 5,
                "level_name": "等级三",
                "level": 3,
                "discount": "",
                "goods_id": "0",
                "validity": 0,
                "has_one_universal_level": null
            },
            {
                "id": 6,
                "level_name": "等级四",
                "level": 4,
                "discount": "",
                "goods_id": "0",
                "validity": 0,
                "has_one_universal_level": null
            }
        ]
    }
}