Эх сурвалжийг харах

fix:空搜索不展示采购意向项目限制

duxin 2 жил өмнө
parent
commit
1d9ba86208

+ 10 - 1
src/jfw/front/shorturl.go

@@ -1174,7 +1174,16 @@ func (s *Short) NologinCommon(userId, stype, id, sid string) error {
 		s.T["logid"] = config.Seoconfig["jysskzy"].(string)
 		s.T["shareid"] = se.EncodeString(shareid)
 		//s.T["keywords"] = s.GetString("kds")
-
+		if stype == "" {
+			stype = "拟建,招标预告,招标公告,招标结果,招标信用信息"
+		}
+		if strings.Contains(stype, "采购意向") {
+			if len(strings.Split(stype, ",")) > 1 {
+				stype = strings.ReplaceAll(stype, "采购意向,", "")
+			} else {
+				stype = strings.ReplaceAll(stype, "采购意向", "")
+			}
+		}
 		s.DisableHttpCache()
 		po, bo, wo, obj := pcVRT(sid, industry, stype, false)
 		if obj != nil && len(obj) > 0 {