简要描述:
盲盒-助力详情页
请求域名:
- http://xx.com
请求URL:
POST/plugin.blind-box.api.assist.get-assist
传递参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
id | 是 | int | 助力记录id |
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
assist | array | 助力信息 |
assist[id] | int | 助力记录的id |
assist[activity_id] | int | 活动id |
assist[member_id] | int | 发起助力的用户id |
assist[invitation] | int | 助力所需人数 |
assist[expire] | int | 助力过期时间戳 |
assist[status] | int | 助力状态(0未完成,1已完成,2已使用,-1已失效) |
assist[assist_log_count] | int | 已经助力人数 |
assist[activity] | array | 助力所关联的活动信息(字段参考盲盒活动详情页接口文档) |
assist[member] | array | 发起助力的会员信息 |
assist[assist_log] | array | 助力信息(当活动为免费并且用户已经开启了助力时存在) |
assist[assist_log][member_id] | int | 助力人id |
assist[assist_log][member][nickname] | string | 助力人昵称 |
assist[assist_log][member][avatar] | string | 助力人头像 |
返回示例:
正确时返回的数据:
{
"result": 1,
"msg": "ok",
"data": {
"assist": {
"id": 1,
"uniacid": 1,
"activity_id": 2,
"member_id": 164934,
"invitation": 1,
"expire": 1615367126,
"status": 1,
"created_at": "2021-03-10 14:16:46",
"updated_at": "2021-03-10 15:05:02",
"assist_log_count": 1,
"activity": {
"id": 2,
"uniacid": 1,
"goods_id": 188,
"activity_name": "盲盒活动2",
"activity_img": "images/1/2019/07/VDFddBMDs8Ddg2rHzdRkGr92dgmrWW.jpg",
"background_style": 1,
"background_color": "",
"activity_type": 1,
"price": "0.00",
"freight": "0.00",
"deduction": [],
"activity_start": "2021-01-01 08:26:55",
"activity_end": "2021-04-01 08:26:57",
"extract_time": 30,
"invitation": 1,
"invitation_time": 2,
"pattern": 1,
"no_refund": 1,
"tips": 0,
"tips_consume": 0,
"activity_rule": "",
"poster": "images/1/2019/12/v2R44jJrHriPZUQlnZ2arHhN99PP24.jpg",
"cservice_code": "images/1/2020/11/sJdaduojeuxejXuoa21JUxjuZTucMu.png",
"cservice_phone": "13266548458",
"is_open": 1,
"stock": 30,
"sales": 0,
"created_at": "2021-03-09 15:23:11",
"updated_at": "2021-03-11 14:03:11",
"deleted_at": null,
"top_img": "images/1/2020/05/U4jBfx62p2x6CxvjpyJxkmcY76EkyC.jpg",
"activity_img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/07/VDFddBMDs8Ddg2rHzdRkGr92dgmrWW.jpg",
"top_img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/05/U4jBfx62p2x6CxvjpyJxkmcY76EkyC.jpg",
"poster_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/12/v2R44jJrHriPZUQlnZ2arHhN99PP24.jpg",
"cservice_code_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/11/sJdaduojeuxejXuoa21JUxjuZTucMu.png"
},
"member": {
"uid": 164934,
"nickname": "13226204088",
"avatar": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
"avatar_image": "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
"username": "13226204088"
},
"assist_log": [
{
"id": 1,
"assist_id": 1,
"member_id": 164933,
"created_at": "2021-03-10 15:05:02",
"updated_at": "2021-03-10 15:05:02",
"member": {
"uid": 164933,
"nickname": "13226204069",
"avatar": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
"avatar_image": "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
"username": "13226204069"
}
}
]
}
}
}
错误时返回:
{
"result": 0,
"msg": "",
"data": []
}
备注:
- 更多返回错误代码请看首页的错误代码描述