xingzai преди 2 години
родител
ревизия
63c63865b0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      controllers/report_selection.go

+ 1 - 1
controllers/report_selection.go

@@ -37,7 +37,7 @@ func (this *ReportSelectionController) Detail() {
 	//uid := user.UserId
 	articleId, _ := this.GetInt("ArticleId")
 	isBestNew, _ := this.GetBool("IsBestNew")
-	if articleId == 0 {
+	if articleId == 0 || isBestNew {
 		isBestNew = true
 		if isBestNew {
 			tbdb := "cygx_report_selection"