ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**简要描述:** - 编辑活动 **请求URL:** - ` /lucky_draw.lucky_draw/edit` **请求方式:** - POST **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | | id | 是 |int|活动id | |name |是 |string |活动名称| |start_time|是 |int|开始时间,时间戳| |end_time |是 |int |结束时间,时间戳| |need_integral|是 |int|需要消耗的积分| |frequency_type|是 |int|抽奖次数类型| |frequency|是 |int|抽奖次数| |rule|是 |string|抽奖规则| |show_winning_list|是 |int|是否显示中奖名单| |remark|否|string|备注| |prizes|是 |array|奖品| |prizes.name|是 |string|奖品名称| |prizes.image|是 |string|奖品图片| |prizes.type|是 |string|奖品类型| |prizes.type_value|是 |string|奖品类型值| |prizes.num|是 |string|奖品数量| |prizes.probability|是 |string|中奖概率| |prizes.tips|是 |string|中奖提示| |prizes.id|是 |int|奖品id| **传参示例:** ``` { "id": 1, "name": "活动一", "start_time": 1600000000, "end_time": 1600000000, "need_integral": 10, "frequency_type": 0, "frequency": 0, "rule": "一个用户一天只能抽5次", "show_winning_list": 1, "remark": "这是备注呀", "prizes": [ {id": 1,"name": "谢谢惠顾", "image": "xxx", "type":0, "type_value":0,"num":100,"probability":0,"tips":"感谢参与"}, {id": 2,"name": "优惠券", "image": "xxx", "type":2, "type_value":5,"num":100,"probability":20,"tips":"恭喜您中了优惠券"}, {id": 3,"name": "余额", "image": "xxx", "type":3, "type_value":3,"num":100,"probability":30,"tips":"恭喜您中了余额"}, {id": 4,"name": "积分", "image": "xxx", "type":1, "type_value":5,"num":100,"probability":30,"tips":"恭喜您中了积分"}, {id": 5,"name": "谢谢惠顾", "image": "xxx", "type":0, "type_value":0,"num":100,"probability":0,"tips":"感谢参与"}, {id": 6,"name": "谢谢惠顾", "image": "xxx", "type":0, "type_value":0,"num":100,"probability":0,"tips":"感谢参与"}, {id": 7,"name": "谢谢惠顾", "image": "xxx", "type":0, "type_value":0,"num":100,"probability":0,"tips":"感谢参与"}, {id": 8,"name": "谢谢惠顾", "image": "xxx", "type":0, "type_value":0,"num":100,"probability":0,"tips":"感谢参与"} ] } ``` **返回示例:** ``` { "code": 1, "show": 0, "msg": "编辑成功", "data": [] } ```