diff --git a/backend/src/main/java/io/dataease/controller/sys/SysPluginController.java b/backend/src/main/java/io/dataease/controller/sys/SysPluginController.java index 0f1c32c9af..d3ca2bc85d 100644 --- a/backend/src/main/java/io/dataease/controller/sys/SysPluginController.java +++ b/backend/src/main/java/io/dataease/controller/sys/SysPluginController.java @@ -50,10 +50,10 @@ public class SysPluginController { } @ApiOperation("更新插件") - @PostMapping("/update/id") + @PostMapping("/update/{pluginId}") @RequiresPermissions("plugin:upload") - public Map update(@PathVariable("id") Long id, @RequestParam("file") MultipartFile file) throws Exception{ - if (pluginService.uninstall(id)) { + public Map update(@PathVariable("pluginId") Long pluginId, @RequestParam("file") MultipartFile file) throws Exception{ + if (pluginService.uninstall(pluginId)) { return pluginService.localInstall(file); } return null;