wangchuanjin 1 vuosi sitten
vanhempi
commit
8732a8325b
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      ownermonitor/ownermonitor.go

+ 3 - 3
ownermonitor/ownermonitor.go

@@ -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)
 	}