wangshan пре 2 година
родитељ
комит
3d55601d95
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      common/src/qfw/util/bidsearch/search.go

+ 2 - 2
common/src/qfw/util/bidsearch/search.go

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