fix[文件服务]:修复传参名称不匹配导致文件加载不出来问题
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user