diff --git a/pkg/common/constant/constant.go b/pkg/common/constant/constant.go index 54ab18cd3..a727c56d9 100644 --- a/pkg/common/constant/constant.go +++ b/pkg/common/constant/constant.go @@ -93,7 +93,7 @@ const ( ClearConversationNotification = 2101 DeleteMsgsNotification = 2102 - NotificationEnd = 3000 + NotificationEnd = 5000 //status MsgNormal = 1 diff --git a/pkg/common/db/cache/black.go b/pkg/common/db/cache/black.go index 2ccd61367..cdd7fa9c1 100644 --- a/pkg/common/db/cache/black.go +++ b/pkg/common/db/cache/black.go @@ -62,6 +62,6 @@ func (b *BlackCacheRedis) GetBlackIDs(ctx context.Context, userID string) (black func (b *BlackCacheRedis) DelBlackIDs(ctx context.Context, userID string) BlackCache { cache := b.NewCache() - cache.AddKeys(userID) + cache.AddKeys(b.getBlackIDsKey(userID)) return cache }