wangchuanjin 1 жил өмнө
parent
commit
6f16e03c58
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  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()
 	defer util.Catch()
 	endTime := time.Now().Unix()
 	endTime := time.Now().Unix()
 	if query == nil || len(query) == 0 {
 	if query == nil || len(query) == 0 {
 		query = map[string]interface{}{
 		query = map[string]interface{}{
-			"pici": map[string]interface{}{
+			incField: map[string]interface{}{
 				"$gte": startTime,
 				"$gte": startTime,
 				"$lt":  endTime,
 				"$lt":  endTime,
 			},
 			},