mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-11-30 01:00:07 +08:00
!79 【轻量级 PR】:修改登录失效返回值code401
Merge pull request !79 from bug制造者/master
This commit is contained in:
@@ -95,7 +95,7 @@ public class AuthFilter implements GlobalFilter, Ordered
|
||||
|
||||
return response.writeWith(Mono.fromSupplier(() -> {
|
||||
DataBufferFactory bufferFactory = response.bufferFactory();
|
||||
return bufferFactory.wrap(JSON.toJSONBytes(R.fail(msg)));
|
||||
return bufferFactory.wrap(JSON.toJSONBytes(R.fail(HttpStatus.UNAUTHORIZED.value(), msg)));
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user