获取成长值vip信息.md
6.25 KB
1、获取成长值vip信息
获取成长值vip信息(method=app.passport.growthvip)
请求参数
参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
---|---|---|---|---|---|---|
client_secret | string | 50 | 否 | 5ac68f20cb18efe154be | 进入接口提供的参数加密信息 | |
uid | int | 1234556 | ||||
method | String | method=app.passport.growthvip |
注意,通用的头部没有列出。
请求示例http://localhost:8080/gateway?method=app.passport.growthvip&debug=XYZ&uid=50001678
code为200即为成功,否则是失败。 响应JSON格式如下所示:
{
"alg": "SALT_MD5",
"code": 200,
"data":
{
"next_vip_level": "3",
"whitegold_start_time": 0,
"current_total_growth": "4000",
"current_vip_level": "2",
"upgrade_need_growth": "3000.0",
"next_vip_title": "白金会员",
"current_vip_title": "金卡会员",
"gold_start_time": 1463436016,
"sliver_start_time": 1454214833
},
"md5": "8b296f5ae1bfa3ff27be73dd83c52a30",
"message": "vip."
}
2、获取会员中心用户等级详情
获取成长值vip信息(method=app.passport.growthDetail)
请求参数
参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
---|---|---|---|---|---|---|
uid | int | 50001678 | ||||
method | String | method=app.passport.growthDetail | ||||
client_type | string | 10 | 否 | iphone | 客户端类型 |
注意,通用的头部没有列出。
请求示例http://192.168.103.73:8080/gateway?method=app.passport.growthDetail&uid=50001678&client_type=iphone
code为200即为成功,否则是失败。 响应JSON格式如下所示:
{
"alg": "SALT_MD5",
"code": 200,
"data":
{
"uid":50001678,
"nickName": "昵称是啥",
"headIco":"head_ico=http://head.static.yhbimg.com/yhb-headxxxxxxxxxxxxxxx?imageView2/{mode}/w/{width}/h/{height}",
"growthValue": "1500",
"vipLevel": "1",
"expireTime": "1522425794",
"vipLevels":[
{
"title":"银卡",
"needGrouth":"600",
"curLevel":"1",
"nextLevel":"2",
"desc":"",
"privilege":[
{
"title":"专享折扣",
"desc":"",
"discount":"9.5折",
"pic_small":"http://static.yohobuy.com/images/app/icon_2x_yhxx.png",
"pic_big":"http://static.yohobuy.com/images/app/icon_3x_yhxx.png",
"light": "Y"
},
{
"title":"生日礼包",
"desc":"",
"discount":"",
"pic_small":"http://static.yohobuy.com/images/app/icon_2x_yhxx.png",
"pic_big":"http://static.yohobuy.com/images/app/icon_3x_yhxx.png",
"light": "Y"
}
]
},
{
"title":"金卡",
"needGrouth":"2000",
"curLevel":"2",
"nextLevel":"3",
"desc":"",
"privilege":[
{
"title":"专享折扣",
"desc":"",
"discount":"9.5折",
"pic_small":"http://static.yohobuy.com/images/app/icon_2x_yhxx.png",
"pic_big":"http://static.yohobuy.com/images/app/icon_3x_yhxx.png",
"light": "Y"
},
{
"title":"生日礼包",
"desc":"",
"discount":"",
"pic_small":"http://static.yohobuy.com/images/app/icon_2x_yhxx.png",
"pic_big":"http://static.yohobuy.com/images/app/icon_3x_yhxx.png",
"light": "Y"
}
]
},
{
"title":"白金卡",
"needGrouth":"5000",
"curLevel":"3",
"nextLevel":"4",
"desc":"",
"privilege":[
{
"title":"专享折扣",
"desc":"",
"discount":"9.5折",
"pic_small":"http://static.yohobuy.com/images/app/icon_2x_yhxx.png",
"pic_big":"http://static.yohobuy.com/images/app/icon_3x_yhxx.png",
"light": "Y"
},
{
"title":"生日礼包",
"desc":"",
"discount":"",
"pic_small":"http://static.yohobuy.com/images/app/icon_2x_yhxx.png",
"pic_big":"http://static.yohobuy.com/images/app/icon_3x_yhxx.png",
"light": "Y"
}
]
},
{
"title":"黑卡",
"needGrouth":"敬请期待",
"curLevel":"4",
"nextLevel":"",
"desc":"黑卡会员是YOHO!BUY有货即将推出的邀请制会员,我们将对您在有货的综合表现(包含不限于购物消费力、浏览购物行为)进行评估",
"privilege":[
]
}
]
},
"md5": "8b296f5ae1bfa3ff27be73dd83c52a30",
"message": "vip detail."
}