|
|
@ -32,8 +32,6 @@ func (t *RewardCtl) Latest() { |
|
|
|
t.CheckErr(err) |
|
|
|
t.Assert(exist, code.MSG_REWARD_NOT_EXIST, "打赏不存在") |
|
|
|
|
|
|
|
go bully_reward_service.CheckRewardStatus(server.Id) |
|
|
|
|
|
|
|
result, err := bully_reward_service.GetRewardLatest(server.Id, activity.RehearsalId, activity.ArchId) |
|
|
|
t.CheckErr(err) |
|
|
|
if result == nil || result.Id == 0 { |
|
|
@ -55,7 +53,6 @@ func (t *RewardCtl) Latest() { |
|
|
|
//获取待审核列表
|
|
|
|
func (t *RewardCtl) WaitReview() { |
|
|
|
activityId := t.MustGetInt64("activity_id") |
|
|
|
//rehearsalId := t.MustGetInt64("rehearsal_id")
|
|
|
|
|
|
|
|
activity := &models.Activity{} |
|
|
|
exist, err := models.Get(activity, activityId) |
|
|
@ -69,7 +66,7 @@ func (t *RewardCtl) WaitReview() { |
|
|
|
t.Assert(exist, code.MSG_REWARD_NOT_EXIST, "打赏不存在") |
|
|
|
|
|
|
|
//// todo: 检查订单
|
|
|
|
//t.CheckErr(bully_reward_service.CheckRewardStatus(server.Id))
|
|
|
|
go bully_reward_service.CheckRewardStatus(server.Id, activity.ArchId) |
|
|
|
|
|
|
|
result, err := bully_reward_service.GetRewardReview(server.Id, activity.RehearsalId, activity.ArchId) |
|
|
|
t.CheckErr(err) |
|
|
|