From 6f5e2610e0acbc1a69b4e9379e967f0d77bdb8b5 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 3 Mar 2026 14:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=96=B0=E5=A2=9E=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=88=BF=E9=97=B4=E7=AE=A1=E7=90=86=E5=91=98=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/inner/endpoint/live/api/RoomManagerClientApi.java | 2 +- .../circle/other/inner/model/dto/live/RoomProfileDTO.java | 5 +++++ .../app/service/app/room/RoomProfileManagerServiceImpl.java | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-inner-api/other-inner/other-inner-api/src/main/java/com/red/circle/other/inner/endpoint/live/api/RoomManagerClientApi.java b/rc-service/rc-inner-api/other-inner/other-inner-api/src/main/java/com/red/circle/other/inner/endpoint/live/api/RoomManagerClientApi.java index 68957d50..eb560520 100644 --- a/rc-service/rc-inner-api/other-inner/other-inner-api/src/main/java/com/red/circle/other/inner/endpoint/live/api/RoomManagerClientApi.java +++ b/rc-service/rc-inner-api/other-inner/other-inner-api/src/main/java/com/red/circle/other/inner/endpoint/live/api/RoomManagerClientApi.java @@ -44,7 +44,7 @@ public interface RoomManagerClientApi { @GetMapping("/updateRoomSettingMemberCapacity") ResultResponse updateRoomSettingMemberCapacity( @RequestParam("userId") Long userId, - @RequestParam("maxMember") Integer maxMember, + @RequestParam(value = "maxMember", required = false) Integer maxMember, @RequestParam("adminNumber") Integer adminNumber); /** diff --git a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/live/RoomProfileDTO.java b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/live/RoomProfileDTO.java index 58775944..a6265d9c 100644 --- a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/live/RoomProfileDTO.java +++ b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/live/RoomProfileDTO.java @@ -88,6 +88,11 @@ public class RoomProfileDTO implements Serializable { */ private String langCode; + /** + * 管理员数量 + */ + private Integer maxAdmin; + /** * false: 未删除 true: 已删除. */ diff --git a/rc-service/rc-service-console/console-application/src/main/java/com/red/circle/console/app/service/app/room/RoomProfileManagerServiceImpl.java b/rc-service/rc-service-console/console-application/src/main/java/com/red/circle/console/app/service/app/room/RoomProfileManagerServiceImpl.java index fadc3ae4..82878fae 100644 --- a/rc-service/rc-service-console/console-application/src/main/java/com/red/circle/console/app/service/app/room/RoomProfileManagerServiceImpl.java +++ b/rc-service/rc-service-console/console-application/src/main/java/com/red/circle/console/app/service/app/room/RoomProfileManagerServiceImpl.java @@ -155,6 +155,10 @@ public class RoomProfileManagerServiceImpl implements RoomProfileManagerService Boolean result = roomManagerClient.updateSelectiveProfile(roomProfile).getBody(); + if (roomProfile.getMaxAdmin() != null) { + roomManagerClient.updateRoomSettingMemberCapacity(roomProfile.getUserId(), null, roomProfile.getMaxAdmin()); + } + if (Boolean.TRUE.equals(result) && Objects.equals(roomProfile.getEvent(), RoomEventEnum.CLOSE.name())) { imGroupClient.sendMessageBroadcast(