|
|
@ -46,14 +46,13 @@ func (t *BullyScreenCtl) Review() { |
|
|
|
customerId := t.MustGetUID() |
|
|
|
status := t.MustGetBool("status") |
|
|
|
ids := strings.Split(t.MustGet("ids"), "|") |
|
|
|
//activityId := t.MustGetInt64("activity_id")
|
|
|
|
rehearsalId := t.MustGetInt64("rehearsal_id") |
|
|
|
activityId := t.MustGetInt64("activity_id") |
|
|
|
//rehearsalId := t.MustGetInt64("rehearsal_id")
|
|
|
|
|
|
|
|
//// TODO: new feat
|
|
|
|
//activity := new(models.Activity)
|
|
|
|
//exist, err := models.Get(activity, activityId)
|
|
|
|
//t.CheckErr(err)
|
|
|
|
//t.Assert(exist, code.MSG_ACTIVITY_NOT_EXIST, "互动不存在")
|
|
|
|
activity := new(models.Activity) |
|
|
|
exist, err := models.Get(activity, activityId) |
|
|
|
t.CheckErr(err) |
|
|
|
t.Assert(exist, code.MSG_ACTIVITY_NOT_EXIST, "互动不存在") |
|
|
|
|
|
|
|
//将金额退回给用户
|
|
|
|
result, err := models.GetBullyScreenHistoryByIds(ids) |
|
|
@ -65,7 +64,7 @@ func (t *BullyScreenCtl) Review() { |
|
|
|
_, err = models.Update(v.Id, v, "status") |
|
|
|
t.CheckErr(err) |
|
|
|
|
|
|
|
if rehearsalId != 0 { // 彩排
|
|
|
|
if activity.RehearsalId != 0 { // 彩排
|
|
|
|
continue |
|
|
|
} |
|
|
|
|
|
|
@ -75,7 +74,8 @@ func (t *BullyScreenCtl) Review() { |
|
|
|
v.Status = 2 |
|
|
|
_, err = models.Update(v.Id, v, "status") |
|
|
|
t.CheckErr(err) |
|
|
|
if rehearsalId != 0 { |
|
|
|
|
|
|
|
if activity.RehearsalId != 0 { |
|
|
|
continue |
|
|
|
} |
|
|
|
// 订单宣告完成
|
|
|
|