企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
**简要描述:** - 会员等级 **请求URL:** - `/shopapi/user/userlevel` **请求方式:** - GET **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | **返回示例** ``` { "code": 1, "show": 0, "msg": "", "data": { "user": { "id": 56, "nickname": "昵称122", "avatar": "http://www.likeshopb2cv3.localhost/uploads/user/avatar/cdb1f772f7377f0abc54cd0da2ee8c3a.jpeg", "level": 4 }, "level_list": [ { "id": 1, "name": "铂金会员", "level": 1, "image": "", "background_image": "", "discount": "会员折扣:8.00折", "condition": [], "next_level": "钻石会员", "status": 0 }, { "id": 4, "name": "钻石会员", "level": 2, "image": "", "background_image": "", "discount": "会员折扣:8.00折", "condition": [ "单消费金额满100元", "累计消费金额满100.22元", "累计消费次数10次" ], "next_level": "至尊会员", "status": 1, "condition_tips": "满足以下全部条件即可升级" }, { "id": 7, "name": "至尊会员", "level": 5, "image": "", "background_image": "", "discount": "会员折扣:8.00折", "condition": [ "单消费金额满100元" ], "next_level": "", "status": 0, "condition_tips": "满足以下任意条件即可升级" } ] } } ``` **返回参数说明:** |参数名 |类型 |说明 | |:--| |user|array|用户信息| |--id|int|用户id| |--nickname|string|用户名称| |--avatar|string|用户头像| |--level|int|等级id| |--level_name|string|等级名称| |--level_list|array|等级列表| |--id|int|等级id| |--name|srting|等级名称| |--image|srting|等级图标| |--background_image|srting|背景图片| |--discount|srting|折扣| |--condition|array|条件数组| |--status|int|状态:1-当前等级;0-不是当前等级(判断已解锁)| |--condition_tips|string|条件提示| |--next_level|string|下个等级|