diff --git a/domain/service/group_s/group_support.go b/domain/service/group_s/group_support.go index 5a5f37555bc1f02a75d50edde952db99b03d03b0..975b4b85c782b1cc9fc2a31c6208461e704e2c70 100644 --- a/domain/service/group_s/group_support.go +++ b/domain/service/group_s/group_support.go @@ -225,14 +225,14 @@ func GetGroupConsumeCount(model *domain.Model, imGroupId, period string) (uint64 // 流水 keyDiamond := rediskey.GetGroupSupportConsumeSummary(period) consume, err := model.RedisCluster.ZScore(context.Background(), keyDiamond, imGroupId).Result() - if err != nil { + if err != nil && err != redis.Nil { model.Log.Errorf("GetSupportLevelByRedis key:%v, groupId:%v, err:%v", keyDiamond, imGroupId, err) return 0, 0, err } // 支持者数量 keySupportNum := rediskey.GetGroupSupportCountSupporter(period, imGroupId) count, err := model.RedisCluster.SCard(context.Background(), keySupportNum).Result() - if err != nil { + if err != nil && err != redis.Nil { model.Log.Errorf("GetSupportLevelByRedis key:%v, groupId:%v, err:%v", keySupportNum, imGroupId, err) return 0, 0, err }