wangkaiyue 9 luni în urmă
părinte
comite
92f7016910
2 a modificat fișierele cu 6 adăugiri și 7 ștergeri
  1. 5 6
      internal/cmd/cmd.go
  2. 1 1
      resource/template/pc/area_district.html

+ 5 - 6
internal/cmd/cmd.go

@@ -36,12 +36,11 @@ var (
 					group.GET("/{signCode}/", controller.SignPageHandler)           //项目标签列表
 					group.GET("/{signCode}/p{pageNum}", controller.SignPageHandler) //项目标签列表
 
-					group.GET("/area/", controller.SiteAreaIndexHandler)                                             //site省份汇总页
-					group.GET("/city/", controller.SiteCityIndexHandler)                                             //site城市汇总页
-					group.GET("/area/{areaCode}_S{siteCode}/", controller.SiteHandler)                               //site关键词列表页面-省
-					group.GET("/city/{areaCode}_{cityCode}_S{siteCode}/", controller.SiteHandler)                    //site关键词列表页面-市
-					group.GET("/city/{areaCode}_{cityCode}_{districtCode}_S{siteCode}.html", controller.SiteHandler) //site关键词列表页面-区县
-					group.GET("/city/{areaCode}_{cityCode}_S{siteCode}.html", controller.SiteHandler)                //site关键词列表页面-区县直辖市
+					group.GET("/area/", controller.SiteAreaIndexHandler)                                         //site省份汇总页
+					group.GET("/city/", controller.SiteCityIndexHandler)                                         //site城市汇总页
+					group.GET("/area/{areaCode}_S{siteCode}/", controller.SiteHandler)                           //site关键词列表页面-省
+					group.GET("/city/{areaCode}_{cityCode}_S{siteCode}/", controller.SiteHandler)                //site关键词列表页面-市
+					group.GET("/city/{areaCode}_{cityCode}_{districtCode}_S{siteCode}/", controller.SiteHandler) //site关键词列表页面-区县
 
 					group.GET("/", controller.PinyinIndexHandler)                      //行业拼音关键词聚合页
 					group.GET("/keywords/{pinyinCode}.html", controller.PinyinHandler) //行业拼音关键词列表页面

+ 1 - 1
resource/template/pc/area_district.html

@@ -85,7 +85,7 @@
                             {{range $k,$v:=$pChildrenArr}}
                             {{if lt $k 10}}
                                 {{if eq $v.Code "S1"}}
-                                <a class="city-aside-item ellipsis cms-link" title="{{$v.Keyword}}" href="/list/city/{{$v.DistrictCode}}_{{$v.Code}}.html" target="_blank">{{$v.Keyword}}</a>
+                                <a class="city-aside-item ellipsis cms-link" title="{{$v.Keyword}}" href="/list/city/{{$v.DistrictCode}}_{{$v.Code}}/" target="_blank">{{$v.Keyword}}</a>
                                 {{end}}
                             {{end}}
                             {{end}}