|
|
@ -159,12 +159,14 @@ func (t *BullyScreenCtl) Latest() { |
|
|
|
t.Assert(exist, code.MSG_ACTIVITY_NOT_EXIST, "互动不存在") |
|
|
|
|
|
|
|
//获取霸屏服务得id
|
|
|
|
bullyScreenServer := new(models.BullyScreenServer) |
|
|
|
exist, err = bullyScreenServer.GetByActivityId(activityId) |
|
|
|
server := new(models.BullyScreenServer) |
|
|
|
exist, err = server.GetByActivityId(activityId) |
|
|
|
t.CheckErr(err) |
|
|
|
t.Assert(exist, code.MSG_BULLY_SCREEN_SERVER_NOT_EXIST, "霸屏不存在") |
|
|
|
|
|
|
|
result, err := bully_reward_service.GetBullyScreenLatest(bullyScreenServer.Id, activity.RehearsalId, activity.ArchId) |
|
|
|
bully_reward_service.CheckBullyScreenStatus(server.Id) |
|
|
|
|
|
|
|
result, err := bully_reward_service.GetBullyScreenLatest(server.Id, activity.RehearsalId, activity.ArchId) |
|
|
|
t.CheckErr(err) |
|
|
|
if result == nil || result.Id == 0 { |
|
|
|
t.JSON(result) |
|
|
|