xingzai hace 1 año
padre
commit
8023833309
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      controllers/report_selection.go

+ 4 - 0
controllers/report_selection.go

@@ -36,7 +36,11 @@ func (this *ReportSelectionController) Detail() {
 	}
 	//uid := user.UserId
 	articleId, _ := this.GetInt("ArticleId")
+	activityId, _ := this.GetInt("ActivityId")
 	isBestNew, _ := this.GetBool("IsBestNew")
+	if activityId > 0 && articleId == 0 {
+		articleId = activityId
+	}
 	if articleId == 0 || isBestNew {
 		isBestNew = true
 		if isBestNew {