mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-05-12 14:52:07 +08:00
update 优化 放行 sse 关闭接口
This commit is contained in:
@@ -18,6 +18,7 @@ security:
|
|||||||
- /auth/register
|
- /auth/register
|
||||||
- /auth/tenant/list
|
- /auth/tenant/list
|
||||||
- /resource/sms/code
|
- /resource/sms/code
|
||||||
|
- /resource/sse/close
|
||||||
- /*/v3/api-docs
|
- /*/v3/api-docs
|
||||||
- /*/error
|
- /*/error
|
||||||
- /csrf
|
- /csrf
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package org.dromara.common.sse.controller;
|
package org.dromara.common.sse.controller;
|
||||||
|
|
||||||
import cn.dev33.satoken.annotation.SaIgnore;
|
|
||||||
import cn.dev33.satoken.stp.StpUtil;
|
import cn.dev33.satoken.stp.StpUtil;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.dromara.common.core.domain.R;
|
import org.dromara.common.core.domain.R;
|
||||||
@@ -27,7 +26,6 @@ public class SseController {
|
|||||||
return sseEmitterManager.connect(userId, tokenValue);
|
return sseEmitterManager.connect(userId, tokenValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SaIgnore
|
|
||||||
@GetMapping(value = "${sse.path}/close")
|
@GetMapping(value = "${sse.path}/close")
|
||||||
public R<Void> close() {
|
public R<Void> close() {
|
||||||
String tokenValue = StpUtil.getTokenValue();
|
String tokenValue = StpUtil.getTokenValue();
|
||||||
|
|||||||
Reference in New Issue
Block a user