Browse Source

产业视频详情页背景图

xiexiaoyuan 2 years ago
parent
commit
990e1b4d61
3 changed files with 5 additions and 0 deletions
  1. 3 0
      controllers/report.go
  2. 1 0
      models/micro_roadshow.go
  3. 1 0
      models/report.go

+ 3 - 0
controllers/report.go

@@ -280,6 +280,7 @@ func (this *ReportController) IndustryList() {
 				ResourceUrl:   v.VideoUrl,
 				BackgroundImg: v.ImgUrl,
 				PlaySeconds:   v.VideoDuration,
+				DetailImgUrl:  v.DetailImgUrl,
 			}
 			if tmp.BackgroundImg == "" {
 				tmp.BackgroundImg = videoMap[v.ChartPermissionId]
@@ -436,6 +437,7 @@ func (this *ReportController) ArticleCategoryList() {
 		videoSimple.Id = video.VideoId
 		videoSimple.Title = "5min逻辑【"+video.IndustryName+"】解析"
 		videoSimple.BackgroundImg = video.ImgUrl
+		videoSimple.DetailImgUrl = video.DetailImgUrl
 		if videoSimple.BackgroundImg == "" {
 			// 获取默认图配置
 			_, videoMap, _, _, e := services.GetMicroRoadShowDefaultImgConfig()
@@ -2734,6 +2736,7 @@ func (this *ReportController) SearchReportAndResource() {
 				ResourceUrl:   v.VideoUrl,
 				BackgroundImg: v.ImgUrl,
 				PlaySeconds:   v.VideoDuration,
+				DetailImgUrl:  v.DetailImgUrl,
 			}
 			if tmp.BackgroundImg == "" {
 				tmp.BackgroundImg = videoMap[v.ChartPermissionId]

+ 1 - 0
models/micro_roadshow.go

@@ -274,6 +274,7 @@ type MicroRoadshowVideo struct {
 	VideoUrl            string    `description:"视频地址"`
 	CreateTime          time.Time `description:"创建时间"`
 	ImgUrl              string    `description:"背景图链接"`
+	DetailImgUrl        string    `description:"产业详情页背景图"`
 }
 
 // GetMicroRoadshowVideoById 主键获取微路演视频

+ 1 - 0
models/report.go

@@ -41,6 +41,7 @@ type MicroVideoSimpleInfo struct {
 	ResourceUrl   string `description:"链接"`
 	BackgroundImg string `description:"背景图"`
 	PlaySeconds   int    `description:"音视频时长"`
+	DetailImgUrl  string `description:"产业详情页背景图"`
 }
 
 type IndustrialAnalyst struct {