许鹏程
2024-05-28 927359fdce884acdcd76b90008eb0303f4bdd29d
src/main/java/com/product/file/util/FileUtils.java
@@ -462,6 +462,7 @@
                FileUtil.copyFile(file, path, encryptFile ? 1 : 0);
            }
        } catch (Exception e) {
         SpringMVCContextHolder.getSystemLogger().error(e);
            throw new BaseException(FileCode.UPLOAD_FILE_FAIL);
        }
    }
@@ -505,6 +506,7 @@
                }
            }
        } catch (Exception e) {
         SpringMVCContextHolder.getSystemLogger().error(e);
            throw new BaseException(FileCode.REPLACE_FILE_FAIL);
        }
    }
@@ -596,8 +598,7 @@
            pdfFile = new File(s);
            uploadOtherFile(false, uploadServer, placeLocation, pdfFile, fileName);
            return true;
        }
        catch (BaseException e) {
      } catch (BaseException e) {
           throw e;
        }catch (Exception e) {
            e.printStackTrace();