ソースを参照

海通国际收藏与申请访谈回显V2

xingzai 2 年 前
コミット
7067d4535c
2 ファイル変更17 行追加0 行削除
  1. 8 0
      controllers/article.go
  2. 9 0
      controllers/htgj.go

+ 8 - 0
controllers/article.go

@@ -1326,6 +1326,14 @@ func (this *ArticleCommonController) DetailPublic() {
 			detail.IsInterviewApply = true
 			detail.InterviewApplyStatus = interviewApplyItem.Status
 		}
+		articleFollowdetail, err := models.GetArticleFollowDetail(articleId, uid)
+		if err != nil {
+			br.Msg = "获取信息失败"
+			br.ErrMsg = "获取关注信息失败,Err:" + err.Error()
+			return
+		}
+		detail.FollowNum = articleFollowdetail.DNum
+		detail.CollectionNum = articleFollowdetail.AcNum
 		resp.Detail = detail
 	}
 	resp.CompanyName = companyName

+ 9 - 0
controllers/htgj.go

@@ -997,6 +997,15 @@ func (this *BaseHtgjController) DetailPublic() {
 			detail.IsInterviewApply = true
 			detail.InterviewApplyStatus = interviewApplyItem.Status
 		}
+		articleFollowdetail, err := models.GetArticleFollowDetail(articleId, uid)
+		if err != nil {
+			br.Msg = "获取信息失败"
+			br.ErrMsg = "获取关注信息失败,Err:" + err.Error()
+			return
+		}
+		detail.FollowNum = articleFollowdetail.DNum
+		detail.CollectionNum = articleFollowdetail.AcNum
+		resp.Detail = detail
 		resp.Detail = detail
 	}
 	resp.CompanyName = companyName