From dc081cfdd26f98fa4d86e65a2248be3a85db71f0 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 17 May 2026 20:27:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(im):=20=E7=AE=80=E5=8C=96=20LiveKit=20webho?= =?UTF-8?q?ok=20=E7=9A=84=20@PostMapping=20=E6=B3=A8=E8=A7=A3=EF=BC=88?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=86=97=E4=BD=99=20consumes=EF=BC=89?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=20LiveKit=20webhook=20=E6=98=AF=20webhook/js?= =?UTF-8?q?on=20=E9=9D=9E=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../im/controller/admin/rtc/ImRtcLiveKitController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yudao-module-im/src/main/java/cn/iocoder/yudao/module/im/controller/admin/rtc/ImRtcLiveKitController.java b/yudao-module-im/src/main/java/cn/iocoder/yudao/module/im/controller/admin/rtc/ImRtcLiveKitController.java index ee89765cae..b68c2ae4b9 100644 --- a/yudao-module-im/src/main/java/cn/iocoder/yudao/module/im/controller/admin/rtc/ImRtcLiveKitController.java +++ b/yudao-module-im/src/main/java/cn/iocoder/yudao/module/im/controller/admin/rtc/ImRtcLiveKitController.java @@ -5,15 +5,14 @@ import cn.iocoder.yudao.framework.common.pojo.CommonResult; import cn.iocoder.yudao.framework.common.util.json.JsonUtils; import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore; import cn.iocoder.yudao.module.im.framework.rtc.core.LiveKitClient; -import cn.iocoder.yudao.module.im.service.rtc.ImRtcCallService; import cn.iocoder.yudao.module.im.framework.rtc.core.LiveKitWebhookEventDTO; +import cn.iocoder.yudao.module.im.service.rtc.ImRtcCallService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.annotation.Resource; import jakarta.annotation.security.PermitAll; import jakarta.servlet.http.HttpServletRequest; import lombok.extern.slf4j.Slf4j; -import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -46,7 +45,7 @@ public class ImRtcLiveKitController { * @param rawBody 原始 JSON body;签名校验需要原始字节 * @return 是否处理成功;伪造 / 非法事件返回 false */ - @PostMapping(value = "/webhook", consumes = MediaType.APPLICATION_JSON_VALUE) + @PostMapping("/webhook") @Operation(summary = "LiveKit Webhook 回调;接收成员离开 / 房间结束等事件做业务态兜底清理") @PermitAll @TenantIgnore