Bladeren bron

活动搜索页排序方式修改

xingzai 2 jaren geleden
bovenliggende
commit
57231710b4
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      controllers/activity.go

+ 1 - 1
controllers/activity.go

@@ -2799,7 +2799,7 @@ func (this *ActivityCoAntroller) ActivityListNew() {
 	} else if activeState == "2,3" {
 		condition += ` ORDER BY art.active_state ASC, art.activity_time DESC  `
 	} else {
-		condition += ` ORDER BY art.activity_time ASC ,  art.active_state ASC   `
+		condition += ` ORDER BY art.activity_time DESC ,  art.active_state ASC   `
 	}
 	list, errList := models.GetActivityListAll(condition, pars, uid, startSize, pageSize, playBack)
 	if errList != nil {