|
|
@ -117,9 +117,6 @@ func (t *LotteryDrawCtl) StopRoll() { |
|
|
|
t.CheckErr(err) |
|
|
|
t.Assert(exist, code.MSG_LOTTERY_RULE_NOT_EXIST, "抽奖规则不存在") |
|
|
|
|
|
|
|
//if ladder.Status != define.StatusRunning {
|
|
|
|
// t.ERROR(fmt.Sprintf("该活动%s", ladder.Status), code.MSG_ERR)
|
|
|
|
//}
|
|
|
|
// 通知直播开始抽奖
|
|
|
|
if activity.RehearsalId == 0 { |
|
|
|
live := new(models.LiveConfig) |
|
|
@ -155,10 +152,6 @@ func (t *LotteryDrawCtl) Stop() { |
|
|
|
t.CheckErr(err) |
|
|
|
t.Assert(exist, code.MSG_LOTTERY_RULE_NOT_EXIST, "抽奖规则不存在") |
|
|
|
|
|
|
|
//if ladder.Status != define.StatusRunning {
|
|
|
|
// t.ERROR(fmt.Sprintf("该活动%s", ladder.Status), code.MSG_ERR)
|
|
|
|
//}
|
|
|
|
|
|
|
|
ladder.Status = define.StatusEnding |
|
|
|
ladder.UpdatedAt = time.Now() |
|
|
|
ladder.RollNum = 0 |
|
|
|