Bladeren bron

feat:xiugai

wangchuanjin 1 jaar geleden
bovenliggende
commit
6f16e03c58
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      p/public.go

+ 2 - 2
p/public.go

@@ -217,12 +217,12 @@ func GetInfoTitle(info map[string]interface{}) string {
 }
 
 //加载数据到内存中
-func LoadBidding(mgo *MongodbSim, dbName, coll string, startTime int64, redisCache bool, query map[string]interface{}, fields map[string]interface{}) (*[]map[string]interface{}, int64) {
+func LoadBidding(mgo *MongodbSim, dbName, coll, incField string, startTime int64, redisCache bool, query map[string]interface{}, fields map[string]interface{}) (*[]map[string]interface{}, int64) {
 	defer util.Catch()
 	endTime := time.Now().Unix()
 	if query == nil || len(query) == 0 {
 		query = map[string]interface{}{
-			"pici": map[string]interface{}{
+			incField: map[string]interface{}{
 				"$gte": startTime,
 				"$lt":  endTime,
 			},