简要描述:

盲盒-发起助力(重复发起助力或者助力还未失效未使用都会返回上次助力的信息)

请求域名:

  • http://xx.com

请求URL:

POST/plugin.blind-box.api.assist.generate-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] array 助力信息(当活动为免费并且用户已经开启了助力时存在)
assist[assist_log][member_id] int 助力人id
assist[assist_log][member][nickname] string 助力人昵称
assist[assist_log][member][avatar] string 助力人头像
poster 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": [
				{
					"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": []
}

备注:

  • 更多返回错误代码请看首页的错误代码描述