fix: 修复无法访问文件问题
This commit is contained in:
parent
16fee41d89
commit
49345c9062
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue