Browse Source

Merge branch 'cygx_9.2' into debug

ziwen 2 years ago
parent
commit
6472061c1f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      controllers/report.go

+ 2 - 1
controllers/report.go

@@ -387,10 +387,11 @@ func (this *ReportController) ArticleCategoryList() {
 		count, err := models.GetTimeLineRecordCount(user.UserId, industrialManagementId, time.Now().Format(utils.FormatDate))
 		for _, v := range timeLineList {
 			if v.Readnum == 0 && user.CreatedTime.Before(utils.StrTimeToTime(v.PublishTime)) && utils.StrTimeToTime(utils.OnlineTime).Before(utils.StrTimeToTime(v.PublishTime)) {
-				timeLineItem.IsRed = true
 				if v.SubCategoryName == "时间线" {
 					haveMorningMeeting = true
+					continue
 				}
+				timeLineItem.IsRed = true
 			}
 		}
 		//因为无法记录用户是否看过晨会点评,所以用用户今天是否看过时间线来判断是否显示小红点,这里是判断分类的小红点