fix: 修复无法访问文件问题

This commit is contained in:
zhouhao 2024-04-07 16:16:01 +08:00
parent 16fee41d89
commit 49345c9062
1 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,9 @@ public class FileManagerController {
@Operation(summary = "获取文件")
public Mono<Void> read(@PathVariable String fileId,
ServerWebExchange exchange) {
if (fileId.contains(".")) {
fileId = fileId.substring(0, fileId.indexOf("."));
}
return exchange
.getResponse()
.writeWith(fileManager