zhangjinkun@topnet.net.cn 9 жил өмнө
parent
commit
741db7f794

+ 1 - 4
core/src/qfw/swordfish/swordfishmanage.go

@@ -49,10 +49,7 @@ func (s *SwordFish) RssSet() error {
 			}
 		}
 	}
-	_, list := getSwordFish(time.Now().Unix(), userId, nil, 10)
-	if len(*list) < 1 {
-		list = mongodb.Find("bidding", nil, `{"comeintime":-1}`, `{"title":1,"href":1,"publishtime":1}`, false, 0, 10)
-	}
+	list := mongodb.Find("bidding", nil, `{"comeintime":-1}`, `{"title":1,"href":1,"publishtime":1}`, false, 0, 10)
 	s.T["msgset"] = msgset
 	s.T["list"] = *list
 	return s.Render("/swordfish/rssset.html", &s.T)