fix[文件服务]:修复传参名称不匹配导致文件加载不出来问题

This commit is contained in:
2025-02-25 11:37:50 +08:00
parent 969c5246d5
commit 2bca1983ec
8 changed files with 25 additions and 30 deletions
@@ -108,7 +108,7 @@ public class FileController {
}
@GetMapping("/files/path/style")
public String getViewUrlByPathStyle(@RequestParam Map<String, Object> params) {
public String getViewUrlByPathStyle(@RequestParam Map<String, String> params) {
return fileService.getZipViewUrlByPath(MapUtils.getString(params,"path"),MapUtils.getString(params, "style"));
}
@@ -4,11 +4,11 @@ server:
spring:
application:
name: file-center
# cloud:
# nacos:
# discovery:
# ip: 119.45.169.13
cloud:
nacos:
discovery:
ip: 119.45.169.13
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
max-file-size: 20MB
max-request-size: 20MB