| | |
| | | if (valStr.contains("文件图片:")) { |
| | | valStr = localPath + valStr.replace("文件图片:", ""); |
| | | File file = new File(valStr); |
| | | if (file.exists()) { |
| | | if (file.exists() && !localPath.equals(valStr)) { |
| | | try (InputStream in = ossEncryptService.decrypt(file)) { |
| | | InputStream in2 = ossEncryptService.decrypt(file); |
| | | BufferedImage bufferedImage = ImageIO.read(in2); |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | } else { |
| | | staticFieldValue = new PictureRenderData(100, 30, "template/noSign.png"); |
| | | staticFieldValue = new PictureRenderData(100, 30, localPath+"template/noSign.png"); |
| | | } |
| | | } |
| | | } |