Browse Source

no message

xingzai 3 years ago
parent
commit
dbcc8ca1eb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      models/chart.go
  2. 1 1
      services/chart.go

+ 1 - 1
models/chart.go

@@ -130,7 +130,7 @@ type HomeChartListResp struct {
 	CreateDate string `description:"创建时间"`
 	PtagName   string `description:"父类名称"`
 	CtagName   string `description:"子类名称"`
-	ImgUrlPc   string `orm:"column(cover)";description:"图片链接"`
+	BodyHtml   string `orm:"column(cover)";description:"图片链接"`
 	HttpUrl    string `orm:"column(iframe)";description:"文章链接跳转地址"`
 	IsNeedJump bool   `description:"是否需要跳转链接地址"`
 	Source     int    `description:"来源  1:文章, 2:图表"`

+ 1 - 1
services/chart.go

@@ -224,7 +224,7 @@ func GetChartCollectionByApi(mobile string) (items []*models.HomeChartListResp,
 		item.CreateDate = v.ChartInfo.CreateDate
 		item.PtagName = v.ChartInfo.Ptag.Name
 		item.CtagName = v.ChartInfo.Ctag.Name
-		item.ImgUrlPc = "https://vmp.hzinsights.com/v2/charts/" + strconv.Itoa(v.ChartId)
+		item.BodyHtml = "https://vmp.hzinsights.com/v2/charts/" + strconv.Itoa(v.ChartId)
 		item.HttpUrl = v.ChartInfo.Iframe
 		item.IsNeedJump = true
 		items = append(items, item)