he2802 1 gadu atpakaļ
vecāks
revīzija
63fc3c939d

+ 1 - 2
zhongzheng-admin/src/main/java/com/zhongzheng/controller/CommonController.java

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