Browse Source

Merge branch 'mfyx_3.7' of http://8.136.199.33:3000/hongze/hongze_web_mfyx into debug

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

+ 1 - 0
controllers/article.go

@@ -142,6 +142,7 @@ func (this *ArticleNoLoginController) Detail() {
 	if detail.ArticleTypeId == 0 {
 		detail.ChartPermissionName = utils.GU_SHOU_NAME
 		detail.Abstract, _ = services.GetReportContentTextSub(detail.Abstract)
+		detail.VmpAuthorization, _ = services.GetUserTokenByMobile(user.Mobile)
 	} else {
 		detail.ChartPermissionName = utils.CHART_PERMISSION_NAME_YANXUAN
 	}

+ 1 - 0
models/article.go

@@ -83,6 +83,7 @@ type ArticleDetail struct {
 	IsApplyAppointmentExpert bool            `description:"是否属于专家访谈"`
 	ShareImg                 string          `description:"分享图片"`
 	ChartPermissionName      string          `description:"行业名称"`
+	VmpAuthorization         string          `description:"策略平台的token"`
 }
 
 type CygxArticleIdReq struct {