瀏覽代碼

no message

xingzai 1 年之前
父節點
當前提交
f07b0c42bf
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      controllers/report.go

+ 6 - 1
controllers/report.go

@@ -1340,6 +1340,8 @@ func (this *MobileReportController) Timeline() {
 		if v.Resource == 3 {
 			meetingreviewchaptIds = append(meetingreviewchaptIds, v.Id)
 		}
+	}
+	if len(meetingreviewchaptIds) > 0 {
 		listMeet, err := services.GetCygxMorningMeetingReviewChapterListByIds(meetingreviewchaptIds)
 		if err != nil {
 			br.Msg = "获取失败"
@@ -1385,7 +1387,10 @@ func (this *MobileReportController) Timeline() {
 			list[k].IsHaveVideo = true
 		}
 		v.PublishDate = utils.TimeRemoveHms2(v.PublishDate)
-
+		if v.Resource == 3 {
+			v.LinkArticleId = mapchaptIdAndArticleId[v.Id]
+			v.ListSubject = mapchaptIdListSubject[v.Id]
+		}
 	}
 
 	//添加我的日程访问记录