by Robin at 20241128

This commit is contained in:
Robin 2024-11-28 15:57:09 +08:00
parent 6a39c8925f
commit 04e5e0e5fa
1 changed files with 2 additions and 2 deletions

View File

@ -5328,9 +5328,9 @@ func (s *Service) OpReloadNotificationUrc(ctx *gin.Context, req *base.BaseReques
mid := idMp["mid"].(int64)
nType := idMp["n_type"].(int64)
_, err = redis.GetRedisClient().IncrBy(util.GetNotifUrcIdForRedis(mid, nType), int64(count))
err = redis.GetRedisClient().Set(util.GetNotifUrcIdForRedis(mid, nType), int64(count), 0)
if err != nil {
logger.Error("Redis IncrBy fail, err: %v", err)
logger.Error("Redis Set fail, err: %v", err)
}
}
}()