Ver código fonte

fix:首页政府招标的同步隐藏内容不足10条

duxin 10 meses atrás
pai
commit
75b64079e5
2 arquivos alterados com 2 adições e 3 exclusões
  1. 2 2
      src/jfw/front/dataServiceArea.go
  2. 0 1
      src/jfw/front/tags.go

+ 2 - 2
src/jfw/front/dataServiceArea.go

@@ -146,7 +146,7 @@ func GovernmentTender(number int) []argument {
 		if len(siteCode) < len(siteCodeMap) {
 			for code, node := range siteCodeMap {
 				var tagName string
-				if node.NotShowCityCode[node.Code] {
+				if node.NotShowCityCode[acronym] {
 					continue
 				}
 				if !siteCode[code] {
@@ -166,7 +166,7 @@ func GovernmentTender(number int) []argument {
 		} else {
 			for code, node := range siteCodeMap {
 				var tagName string
-				if node.NotShowCityCode[node.Code] {
+				if node.NotShowCityCode[acronym] {
 					continue
 				}
 				if node.Alias != "" {

+ 0 - 1
src/jfw/front/tags.go

@@ -631,7 +631,6 @@ func (this *Tags) GetConsult() []map[string]interface{} {
 		}
 		return rs
 	}, cacheTime)
-	log.Println(res.Maps())
 	if !res.IsEmpty() {
 		return res.Maps()
 	}