diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index 0708893..38139e2 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -710,7 +710,7 @@ public class AppController extends BaseController @Log(title = "APP查询版本信息", businessType = BusinessType.OTHER) @GetMapping("/version/info") public AjaxResult queryVersionInformation(){ - String localPath = RuoYiConfig.getProfile(); + String localPath = RuoYiConfig.getAppInfoPath(); String file = FileUtils.readJsonFile(localPath + "appVersion.json"); return AjaxResult.success(JSONObject.parseObject(file)); } diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java b/ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java index 00f70f6..eeb224c 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java @@ -132,4 +132,12 @@ public class RuoYiConfig { return getProfile() + "/upload"; } + + /** + * 获取上传路径 + */ + public static String getAppInfoPath() + { + return getProfile() + "/appInfo"; + } }