From 4709b6f535bc3aaa8266031f09dfd1915bd172e8 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Wed, 26 Nov 2025 16:04:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A2=E5=8C=85=E9=A3=98=E7=AA=97=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=88=BF=E9=97=B4=E5=92=8C=E7=BA=A2=E5=8C=85ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/command/redpacket/SendRoomRedPacketCmdExe.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/redpacket/SendRoomRedPacketCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/redpacket/SendRoomRedPacketCmdExe.java index 0d83eb8d..c29a423a 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/redpacket/SendRoomRedPacketCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/redpacket/SendRoomRedPacketCmdExe.java @@ -95,7 +95,7 @@ public class SendRoomRedPacketCmdExe { ); // 发送飘窗通知 - sendMessage(cmd); + sendMessage(cmd, packetId); log.info("发红包成功 userId={} packetId={} roomId={} type={} amount={} count={}", userId, packetId, cmd.getRoomId(), cmd.getPacketType(), @@ -104,12 +104,14 @@ public class SendRoomRedPacketCmdExe { return RoomRedPacketAppConvertor.toCO(redPacket); } - private void sendMessage(SendRoomRedPacketCmd cmd) { + private void sendMessage(SendRoomRedPacketCmd cmd, String packetId) { try { String roomAccount = roomProfileManagerService.getRoomAccount(cmd.getRoomId()); UserProfileDTO userProfile = userProfileAppConvertor.toUserProfileDTO(userProfileGateway.getByUserId(cmd.getReqUserId())); Map build = OfficialNoticeUtils.buildUserProfile(userProfile); build.put("roomAccount", roomAccount); + build.put("roomId", String.valueOf(cmd.getRoomId())); + build.put("packetId", packetId); if (cmd.getTotalAmount() >= 10000) { imGroupClient.sendMessageBroadcast(