修改app版本信息文件路径

master
gongzhenkun 2 years ago
parent 9e0b5f822d
commit 996f0b414f

@ -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));
}

@ -132,4 +132,12 @@ public class RuoYiConfig
{
return getProfile() + "/upload";
}
/**
*
*/
public static String getAppInfoPath()
{
return getProfile() + "/appInfo";
}
}

Loading…
Cancel
Save