|
|
@ -22,13 +22,13 @@ func (t *LotteryDrawCtl) Start() { |
|
|
|
ladderId := t.MustGetInt("lottery_draw_ladder_id") |
|
|
|
activityId := t.MustGetInt("activity_id") |
|
|
|
|
|
|
|
ladder := new(models.LotteryDrawRuleLadder) |
|
|
|
exist, err := models.Get(ladder, ladderId) |
|
|
|
ladder := models.LotteryDrawRuleLadder{} |
|
|
|
exist, err := models.Get(&ladder, ladderId) |
|
|
|
t.CheckErr(err) |
|
|
|
t.Assert(exist, code.MSG_LOTTERY_RULE_NOT_EXIST, "抽奖规则不存在") |
|
|
|
|
|
|
|
activity := new(models.Activity) |
|
|
|
exist, err = models.Get(activity, activityId) |
|
|
|
activity := models.Activity{} |
|
|
|
exist, err = models.Get(&activity, activityId) |
|
|
|
t.CheckErr(err) |
|
|
|
t.Assert(exist, code.MSG_ACTIVITY_NOT_EXIST, "互动不存在") |
|
|
|
t.CheckRunning(activity.Status) |
|
|
|