From 5b60dd29e8f0c9d82fa54051b3c22d76543a362b Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期五, 20 九月 2024 10:37:29 +0800 Subject: [PATCH] 修改权限控制逻辑 --- ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/util/QRCodeUtils.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/util/QRCodeUtils.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/util/QRCodeUtils.java index 562b759..e13aa76 100644 --- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/util/QRCodeUtils.java +++ b/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; } /** -- Gitblit v1.7.1