|
@@ -120,6 +120,7 @@ func init() {
|
|
|
type ClassCode struct {
|
|
|
Class int
|
|
|
Code string
|
|
|
+ Url string
|
|
|
}
|
|
|
|
|
|
// 政府招标
|
|
@@ -143,12 +144,14 @@ func GovernmentTender(number int) []argument {
|
|
|
areaM[name] = ClassCode{
|
|
|
Class: common.IntAll(v["class"]),
|
|
|
Code: common.ObjToString(v["pcode"]),
|
|
|
+ Url: "/list/area/%s_%s",
|
|
|
}
|
|
|
- case 2:
|
|
|
+ default:
|
|
|
name := common.ObjToString(v["city"])
|
|
|
areaM[name] = ClassCode{
|
|
|
Class: common.IntAll(v["class"]),
|
|
|
Code: common.ObjToString(v["pcode"]),
|
|
|
+ Url: "/list/city/%s_%s",
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -184,7 +187,7 @@ func GovernmentTender(number int) []argument {
|
|
|
}
|
|
|
data = append(data, argument{
|
|
|
fmt.Sprintf("%s%s", name, tagName),
|
|
|
- fmt.Sprintf("/list/area/%s_%s", acronym.Code, code),
|
|
|
+ fmt.Sprintf(acronym.Url, acronym.Code, code),
|
|
|
})
|
|
|
siteCode[code] = true
|
|
|
break
|
|
@@ -210,7 +213,7 @@ func GovernmentTender(number int) []argument {
|
|
|
}
|
|
|
data = append(data, argument{
|
|
|
fmt.Sprintf("%s%s", name, tagName),
|
|
|
- fmt.Sprintf("/list/area/%s_%s", acronym.Code, code),
|
|
|
+ fmt.Sprintf(acronym.Url, acronym.Code, code),
|
|
|
})
|
|
|
break
|
|
|
}
|