|
|
@ -63,6 +63,7 @@ func (t *LotteryDrawCtl) Start() { |
|
|
|
if exist && live.HaveModule(define.MODULE_LOTTERY) { |
|
|
|
go im_service.SendGroupCustomMessage("admin", activityId, im_service.NoticeLotteryDrawStart, |
|
|
|
map[string]interface{}{ |
|
|
|
"admin": 1, |
|
|
|
"lottery_draw_ladder_id": ladder.Id, |
|
|
|
"timestamp": time.Now().Unix(), |
|
|
|
"desc": "开始抽奖", |
|
|
@ -104,6 +105,7 @@ func (t *LotteryDrawCtl) StartRoll() { |
|
|
|
if exist && live.HaveModule(define.MODULE_LOTTERY) { |
|
|
|
go im_service.SendGroupCustomMessage("admin", activityId, im_service.NoticeLotteryDrawRollStart, |
|
|
|
map[string]interface{}{ |
|
|
|
"admin": 1, |
|
|
|
"lottery_draw_ladder_id": ladder.Id, |
|
|
|
"timestamp": time.Now().Unix(), |
|
|
|
"roll_num": ladder.RollNum, |
|
|
@ -139,6 +141,7 @@ func (t *LotteryDrawCtl) StopRoll() { |
|
|
|
if exist && live.HaveModule(define.MODULE_LOTTERY) { |
|
|
|
go im_service.SendGroupCustomMessage("admin", activityId, im_service.NoticeLotteryDrawRollStop, |
|
|
|
map[string]interface{}{ |
|
|
|
"admin": 1, |
|
|
|
"lottery_draw_ladder_id": ladder.Id, |
|
|
|
"timestamp": time.Now().Unix(), |
|
|
|
"roll_num": ladder.RollNum, |
|
|
@ -180,6 +183,7 @@ func (t *LotteryDrawCtl) Stop() { |
|
|
|
if exist && live.HaveModule(define.MODULE_LOTTERY) { |
|
|
|
go im_service.SendGroupCustomMessage("admin", activityId, im_service.NoticeLotteryDrawStop, |
|
|
|
map[string]interface{}{ |
|
|
|
"admin": 1, |
|
|
|
"lottery_draw_ladder_id": ladder.Id, |
|
|
|
"timestamp": time.Now().Unix(), |
|
|
|
"desc": "结束抽奖", |
|
|
@ -374,6 +378,7 @@ func (t *LotteryDrawCtl) Lottery() { |
|
|
|
if exist && live.HaveModule(define.MODULE_LOTTERY) { |
|
|
|
go im_service.SendGroupCustomMessage("admin", activityId, im_service.NoticeLotteryDrawResult, |
|
|
|
map[string]interface{}{ |
|
|
|
"admin": 1, |
|
|
|
"lottery_draw_ladder_id": ladder.Id, |
|
|
|
"winners": winners, |
|
|
|
"roll_num": ladder.RollNum, |
|
|
|