From 33ee24f4676cd9d138c9f6e145b2c95890346178 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Mon, 29 Dec 2025 21:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=AE=B6=E6=97=8F=E5=90=8E?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E7=94=A8=E6=88=B7=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/app/command/family/FamilyMessageHandleExe.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyMessageHandleExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyMessageHandleExe.java index cefc4fef..5d28f529 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyMessageHandleExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyMessageHandleExe.java @@ -26,8 +26,10 @@ import com.red.circle.other.inner.model.dto.famliy.FamilyDetailsDTO; import com.red.circle.other.inner.model.dto.user.reigon.UserRegionDTO; import com.red.circle.tool.core.sequence.IdWorkerUtils; import com.red.circle.tool.core.text.StringUtils; -import java.util.Objects; -import java.util.Optional; + +import java.util.*; +import java.util.stream.Collectors; + import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; @@ -101,6 +103,8 @@ public class FamilyMessageHandleExe { } sendNotification(msg.getSenderUser(), true); + + userProfileGateway.removeCacheAll(new HashSet<>(Collections.singletonList(msg.getSenderUser()))); }