瀏覽代碼

no message

xingzai 1 年之前
父節點
當前提交
8023833309
共有 1 個文件被更改,包括 4 次插入0 次删除
  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 {