|
@@ -124,7 +124,7 @@ func GetPcBidSearchData(searchvalue, area, city, publishtime, subtype, industry,
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
-var topType = map[string]string{
|
|
|
|
|
|
+var TopType = map[string]string{
|
|
"招标预告": "预告",
|
|
"招标预告": "预告",
|
|
"招标公告": "招标",
|
|
"招标公告": "招标",
|
|
"招标结果": "结果",
|
|
"招标结果": "结果",
|
|
@@ -210,7 +210,7 @@ func GetBidSearchQuery(area, city, publishtime, subtype, winner, buyerclass stri
|
|
var subTypes []string
|
|
var subTypes []string
|
|
|
|
|
|
for _, v := range strings.Split(subtype, ",") {
|
|
for _, v := range strings.Split(subtype, ",") {
|
|
- if v1, ok := topType[v]; ok {
|
|
|
|
|
|
+ if v1, ok := TopType[v]; ok {
|
|
topTypes = append(topTypes, fmt.Sprintf(`"%s"`, v1))
|
|
topTypes = append(topTypes, fmt.Sprintf(`"%s"`, v1))
|
|
} else {
|
|
} else {
|
|
subTypes = append(subTypes, fmt.Sprintf(`"%s"`, v))
|
|
subTypes = append(subTypes, fmt.Sprintf(`"%s"`, v))
|