|
@@ -14,10 +14,12 @@ func GetBannerUrlBody(url string) (itemResp *models.BannerUrlResp) {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
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
|
|
|
}
|