Pu Zhibing
2024-10-22 51de7e6b1a7b68c76b8dcb385013a0c06466b81c
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/util/QRCodeUtils.java
@@ -125,9 +125,8 @@
        BufferedImage image = QRCodeUtils.createImage(content, imgPath,
                needCompress);
        mkdirs(destPath);
        String file = new Random().nextInt(99999999)+".jpg";
        ImageIO.write(image, FORMAT_NAME, new File(destPath+"/"+file));
        return file;
        ImageIO.write(image, FORMAT_NAME, new File(destPath));
        return destPath;
    }
    /**