Эх сурвалжийг харах

Merge branch 'cygx_10.0' of http://8.136.199.33:3000/cxzhang/hongze_clpt into debug

xingzai 1 жил өмнө
parent
commit
22e023a05e
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      services/banner.go

+ 4 - 0
services/banner.go

@@ -14,10 +14,12 @@ func GetBannerUrlBody(url string) (itemResp *models.BannerUrlResp) {
 	//3:活动详情  https://web.hzinsights.com/activity/detail/2701
 	//4:产业详情  https://web.hzinsights.com/indepth/info/20/79
 	//5:关于我们  https://clpttest.hzinsights.com/about
+	//6:产品内测 https://clpttest.hzinsights.com/internal/article/29
 	material := "material/info"
 	activity := "activity/detail"
 	indepth := "indepth/info"
 	about := "/about"
+	internal := "internal/article"
 	item := new(models.BannerUrlResp)
 	item.Body = url
 	urlSlice := strings.Split(url, "/")
@@ -36,6 +38,8 @@ func GetBannerUrlBody(url string) (itemResp *models.BannerUrlResp) {
 		item.Type = 4
 	} else if strings.Contains(url, about) {
 		item.Type = 5
+	} else if strings.Contains(url, internal) {
+		item.Type = 6
 	} else {
 		item.Type = 1
 	}