From cb961a8edb03851bf6beeb87e48538057a7ecb2d Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Mon, 19 Jan 2026 15:22:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=8B=89=E9=BB=91=E5=BC=BA?= =?UTF-8?q?=E5=88=B6=E5=8F=96=E6=B6=88=E5=85=B3=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/app/command/user/UserShieldBlackAddCmdExe.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/UserShieldBlackAddCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/UserShieldBlackAddCmdExe.java index 64aabb40..23e9c901 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/UserShieldBlackAddCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/UserShieldBlackAddCmdExe.java @@ -11,10 +11,7 @@ import com.red.circle.other.infra.database.mongo.service.live.RoomProfileManager import com.red.circle.other.infra.database.mongo.service.live.RoomUserBlacklistService; import com.red.circle.other.infra.database.rds.entity.user.user.BaseInfo; import com.red.circle.other.infra.database.rds.entity.user.user.CpRelationship; -import com.red.circle.other.infra.database.rds.service.user.user.BaseInfoService; -import com.red.circle.other.infra.database.rds.service.user.user.CpRelationshipService; -import com.red.circle.other.infra.database.rds.service.user.user.RelationshipFriendService; -import com.red.circle.other.infra.database.rds.service.user.user.ShieldBlackService; +import com.red.circle.other.infra.database.rds.service.user.user.*; import com.red.circle.other.inner.asserts.OtherErrorCode; import com.red.circle.other.inner.enums.config.EnumConfigKey; import com.red.circle.other.inner.enums.live.RoomUserRolesEnum; @@ -43,6 +40,7 @@ public class UserShieldBlackAddCmdExe { private final RoomProfileManagerService roomProfileManagerService; private final RelationshipFriendService relationshipFriendService; private final CpRelationshipService cpRelationshipService; + private final UserSubscriptionService userSubscriptionService; public void execute(UserShieldBlackUserCmd cmd) { @@ -67,6 +65,9 @@ public class UserShieldBlackAddCmdExe { relationshipFriendService.removeFriend(cmd.requiredReqUserId(), cmd.getShieldUserId()); relationshipFriendService.removeFriend(cmd.getShieldUserId(), cmd.requiredReqUserId()); + userSubscriptionService.remove(cmd.requiredReqUserId(), cmd.getShieldUserId()); + userSubscriptionService.remove(cmd.getShieldUserId(), cmd.requiredReqUserId()); + // 拉黑房间 BaseInfo beBlackUser = baseInfoService.getById(cmd.getShieldUserId()); ResponseAssert.notNull(UserErrorCode.USER_INFO_NOT_FOUND, beBlackUser);