Browse Source

no message

xingzai 1 year ago
parent
commit
8023833309
1 changed files with 4 additions and 0 deletions
  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 {