|
|
@@ -186,9 +186,8 @@ public class CommonController extends BaseController {
|
|
|
public void resourceDownload(String resource, HttpServletRequest request, HttpServletResponse response)
|
|
|
throws Exception {
|
|
|
try {
|
|
|
-
|
|
|
if (!FileUtils.checkAllowDownload(resource)) {
|
|
|
- throw new Exception(StrUtil.format("资源文件({})非法,不允许下载。 ", resource));
|
|
|
+ throw new Exception(StrUtil.format("资源文件({})非法,不允许下载。 ", resource));
|
|
|
}
|
|
|
// 本地资源路径
|
|
|
String localPath = RuoYiConfig.getProfile();
|