Browse Source

rm coment

master
Tooooommy 4 years ago
parent
commit
ab589318e1
  1. 1
      controllers/client/upper_wall.go
  2. 7
      controllers/pc/lottery_draw.go

1
controllers/client/upper_wall.go

@ -14,7 +14,6 @@ type UpperWallCtl struct {
}
//发送上墙消息
// todo: 支付接口
func (t *UpperWallCtl) Send() {
uid := t.MustGetUID()
activityId := t.MustGetInt64("activity_id")

7
controllers/pc/lottery_draw.go

@ -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

Loading…
Cancel
Save