yaowanxin
9 天以前 e58fbf25c7a6827888e830533ecfc8c26b893308
src/main/java/com/chinaztt/mes/docx/service/impl/DocxServiceImpl.java
@@ -23,7 +23,7 @@
    @Override
    public R<?> getFile(GetFileDto getFileDto) throws IOException, SQLException, ClassNotFoundException, InstantiationException, IllegalAccessException, TesseractException {
        File file = getFileStart(getFileDto.getFilePath(), getFileDto.getFileExtension());
        if (!file.exists()) {
        if (file != null && !file.exists()) {
            return R.failed("未查询到该路径:" + getFileDto.getFilePath() + "下存在:" + getFileDto.getFileExtension() + "结尾的文件!");
        }
        switch (getFileDto.getFileExtension()) {
@@ -59,6 +59,8 @@
                return R.ok(TakeWords.getMysqlFile(getFileDto));
            case ".png":
                return R.ok(TakeWords.readPngFile(file));
            case ".mqtt":
                return R.ok("mqtt---");
            default:
                return R.failed("后缀名配置错误!");
        }