|
@@ -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
|
|
|
}
|