|
@@ -70,14 +70,14 @@ func Match(msl *Mysql, mgoMain, mgoLog *MongodbSim, ui *UserInfo, sl *SortList,
|
|
|
if oms[buyer] == nil {
|
|
|
continue
|
|
|
}
|
|
|
- if result[buyer] == nil {
|
|
|
- result[buyer] = oms[buyer]
|
|
|
- }
|
|
|
_id, _ := v.Info["_id"].(string)
|
|
|
key := fmt.Sprintf("ownermonitor_%s_%s_%s", userId, buyer, _id)
|
|
|
if exists, _ := redis.Exists("pushcache_1", key); exists {
|
|
|
continue
|
|
|
}
|
|
|
+ if result[buyer] == nil {
|
|
|
+ result[buyer] = oms[buyer]
|
|
|
+ }
|
|
|
redis.Put("pushcache_1", key, 1, ThreeDay)
|
|
|
result[buyer].Infos = append(result[buyer].Infos, v.Info)
|
|
|
}
|