!79 【轻量级 PR】:修改登录失效返回值code401

Merge pull request !79 from bug制造者/master
pull/80/MERGE
若依 3 years ago committed by Gitee
commit 6650397e38

@ -95,7 +95,7 @@ public class AuthFilter implements GlobalFilter, Ordered
return response.writeWith(Mono.fromSupplier(() -> { return response.writeWith(Mono.fromSupplier(() -> {
DataBufferFactory bufferFactory = response.bufferFactory(); DataBufferFactory bufferFactory = response.bufferFactory();
return bufferFactory.wrap(JSON.toJSONBytes(R.fail(msg))); return bufferFactory.wrap(JSON.toJSONBytes(R.fail(HttpStatus.UNAUTHORIZED.value(), msg)));
})); }));
} }

Loading…
Cancel
Save