Browse Source

no message

xingzai 2 years ago
parent
commit
2ac5a8e8bc
1 changed files with 4 additions and 0 deletions
  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
 	//3:活动详情  https://web.hzinsights.com/activity/detail/2701
 	//4:产业详情  https://web.hzinsights.com/indepth/info/20/79
 	//4:产业详情  https://web.hzinsights.com/indepth/info/20/79
 	//5:关于我们  https://clpttest.hzinsights.com/about
 	//5:关于我们  https://clpttest.hzinsights.com/about
+	//6:产品内测 https://clpttest.hzinsights.com/internal/article/29
 	material := "material/info"
 	material := "material/info"
 	activity := "activity/detail"
 	activity := "activity/detail"
 	indepth := "indepth/info"
 	indepth := "indepth/info"
 	about := "/about"
 	about := "/about"
+	internal := "internal/article"
 	item := new(models.BannerUrlResp)
 	item := new(models.BannerUrlResp)
 	item.Body = url
 	item.Body = url
 	urlSlice := strings.Split(url, "/")
 	urlSlice := strings.Split(url, "/")
@@ -36,6 +38,8 @@ func GetBannerUrlBody(url string) (itemResp *models.BannerUrlResp) {
 		item.Type = 4
 		item.Type = 4
 	} else if strings.Contains(url, about) {
 	} else if strings.Contains(url, about) {
 		item.Type = 5
 		item.Type = 5
+	} else if strings.Contains(url, internal) {
+		item.Type = 6
 	} else {
 	} else {
 		item.Type = 1
 		item.Type = 1
 	}
 	}