Ver código fonte

feat:判断移除

wangshan 3 anos atrás
pai
commit
2425bdc26d
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      jyBXSubscribe/rpc/util/push.go

+ 3 - 3
jyBXSubscribe/rpc/util/push.go

@@ -738,9 +738,9 @@ func (s *subscribePush) DefaultDatas(spqp *SubPushQueryParam) (hasNextPage bool,
 			now := time.Now()
 			for _, v := range *list {
 				redisKey := fmt.Sprintf("pushinfo_%s_%s", spqp.UserId, common.ObjToString(v["_id"]))
-				if isExists, _ := redis.Exists("pushcache_2_a", redisKey); isExists {
-					continue
-				}
+				//if isExists, _ := redis.Exists("pushcache_2_a", redisKey); isExists {
+				//	continue
+				//}
 				title := strings.Replace(common.ObjToString(v["title"]), "\n", "", -1)
 				var myInsert = make(map[string]interface{})
 				myInsert["userid"] = spqp.UserId