by Robin at 20241128
This commit is contained in:
parent
6a39c8925f
commit
04e5e0e5fa
|
@ -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)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue