Browse Source

fix:bug

token_replace
黄梓健 4 years ago
parent
commit
0ad3e8e8c5
  1. 1
      controllers/client/bully_screen.go
  2. 1
      controllers/client/reward.go
  3. 4
      controllers/pc/upper_wall.go

1
controllers/client/bully_screen.go

@ -77,6 +77,7 @@ func (t *BullyScreenCtl) PaScreen() {
}
_, err = models.Add(&history)
t.CheckErr(err)
res["rehearsal_id"] = activity.RehearsalId
t.JSON(res)
}

1
controllers/client/reward.go

@ -84,7 +84,6 @@ func (t *RewardCtl) Reward() {
_, err = models.Add(&history)
t.CheckErr(err)
res["rehearsal_id"] = activity.RehearsalId
t.JSON(res)
}

4
controllers/pc/upper_wall.go

@ -98,7 +98,7 @@ func (t *UpperWallCtl) Review() {
result := make([]*UpperWallResult, 0)
err := core.GetXormAuto().Table(&models.UpperWall{}).Alias("w").
Join("LEFT", (&models.User{}).Alias("u"), "w.user_id=u.id and u.is_delete=0").
Where("w.is_delete=0").In("w.id", ids).Asc("w.created_at asc").Find(&result)
Where("w.is_delete=0").In("w.id", ids).Asc("w.created_at").Find(&result)
t.CheckErr(err)
if len(result) == 0 {
t.ERROR("不存在上墙消息", code.MSG_DATA_NOT_EXIST)
@ -136,7 +136,7 @@ func (t *UpperWallCtl) Blacklist() {
err = core.GetXormAuto().Table("ox_upper_wall").Alias("w").
Join("LEFT", "ox_user as u", "w.user_id=u.id and u.is_delete=0").
Where("w.is_delete=0 and w.status=1 and w.rehearsal_id=? and w.activity_id=? and w.arch_id=?",
activity.RehearsalId, activity.Id, activity.ArchId).OrderBy("review_time desc").Find(&result)
activity.RehearsalId, activity.Id, activity.ArchId).Desc("w.review_time").Find(&result)
t.CheckErr(err)
t.JSON(map[string]interface{}{

Loading…
Cancel
Save