|
@@ -151,10 +151,10 @@ func dealBidding() {
|
|
|
func getHot() {
|
|
|
var existsMap = make(map[string]bool) //bidding_hots 已经存在的ID
|
|
|
//获取已有热门数据
|
|
|
- hots, _ := MgoB.Find("bidding_hots", nil, nil, map[string]interface{}{"_id": 1}, false, -1, -1)
|
|
|
+ hots, _ := MgoB.Find("bidding_hots", nil, nil, map[string]interface{}{"bidding_id": 1}, false, -1, -1)
|
|
|
if len(*hots) > 0 {
|
|
|
for _, v := range *hots {
|
|
|
- existsMap[mongodb.BsonIdToSId(v["_id"])] = true
|
|
|
+ existsMap[mongodb.BsonIdToSId(v["bidding_id"])] = true
|
|
|
}
|
|
|
}
|
|
|
|