简要描述:
访问权限
接口URL:
http://api.zmengzhu.com/business/v1/prizes/awardInfo |
请求方式:
返回结果格式:
参数:
参数名 |
是否必须 |
类型 |
默认值 |
说明 |
prize_id |
是 |
int |
|
抽奖id |
award_id |
是 |
int |
|
奖品id |
返回示例:
响应成功JSON示例:
// 示例
{
code: 200,
msg: "ok",
data: {
"id": "46453",//奖品id
"prize_id": "26234",//抽奖id
"name": "奖品1",//奖品名称
"type": "1",
"weight": "1",//排序权重
"goods_name": "奖品1",
"goods_image": "/upload/img/65/01/6501c8fb7cdc7dba1d17c27b947f8472.jpeg",//图片
"quantity": "100", //数量
"remain_quantity": "98",//剩余数量
"status": "1", //状态 1:奖项未领取完 2:奖项已被领取完
"created_at": "1723873777",
"updated_at": "1723888798",
"probability": "0.000", //概率
"reserve_user": [111,222,333] //白名单用户
}
}
错误时返回:
{
"code": 20001,
"msg": "签名校验失败",
"data": {}
}