Browse Source

no message

zhangchuanxing 1 month ago
parent
commit
2c70bed2ff
2 changed files with 6 additions and 0 deletions
  1. 5 0
      controllers/article.go
  2. 1 0
      models/article.go

+ 5 - 0
controllers/article.go

@@ -137,6 +137,11 @@ func (this *ArticleNoLoginController) Detail() {
 	if detail.ArticleTypeId == 14 {
 		detail.IsApplyAppointmentExpert = true //判断文章类型是否属于专家访谈  查研观向11.0
 	}
+	if detail.ArticleTypeId == 0 {
+		detail.ChartPermissionName = utils.GU_SHOU_NAME
+	} else {
+		detail.ChartPermissionName = utils.CHART_PERMISSION_NAME_YANXUAN
+	}
 	detail.Disclaimers = utils.DISCLAIMERS
 	detail.ShareImg = services.GetArticleShareImg(articleId)
 	//作者头像

+ 1 - 0
models/article.go

@@ -82,6 +82,7 @@ type ArticleDetail struct {
 	ArticleTypeId            int             `description:"文章类型ID"`
 	IsApplyAppointmentExpert bool            `description:"是否属于专家访谈"`
 	ShareImg                 string          `description:"分享图片"`
+	ChartPermissionName      string          `description:"行业名称"`
 }
 
 type CygxArticleIdReq struct {