zhangjinkun@topnet.net.cn 9 年之前
父節點
當前提交
741db7f794
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      core/src/qfw/swordfish/swordfishmanage.go

+ 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["msgset"] = msgset
 	s.T["list"] = *list
 	s.T["list"] = *list
 	return s.Render("/swordfish/rssset.html", &s.T)
 	return s.Render("/swordfish/rssset.html", &s.T)