From e7cb376b87eb862e579ef5f4d1eb697d77e64ceb Mon Sep 17 00:00:00 2001 From: wen <1455474577@qq.com> Date: Wed, 17 Nov 2021 11:59:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9QrImgUtils=EF=BC=8C=E5=B0=86?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=94=9F=E6=88=90=E7=9A=84=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E5=9B=BE=E7=89=87=EF=BC=8C=E4=BB=8Eyml=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xhpc/charging/station/utils/img/QrImgUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/utils/img/QrImgUtils.java b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/utils/img/QrImgUtils.java index 8aa175e1..6a726c34 100644 --- a/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/utils/img/QrImgUtils.java +++ b/xhpc-modules/xhpc-charging-station/src/main/java/com/xhpc/charging/station/utils/img/QrImgUtils.java @@ -3,7 +3,6 @@ package com.xhpc.charging.station.utils.img; import cn.hutool.core.date.DateUtil; import com.aliyun.oss.OSSClient; import com.xhpc.charging.station.mapper.XhpcImgMapper; -import com.xhpc.common.domain.XhpcChargingPile; import com.xhpc.common.domain.XhpcTerminal; import org.springframework.core.env.Environment; @@ -33,7 +32,7 @@ public class QrImgUtils { //2.1生成指定规则的图片名 String qrFileName = DateUtil.format(new Date(), "yyyyMMddHHmmssSSS") + serialNumber + ".png"; //2.2获取生成的二维码图片 - File QrCode = QRCodeUtil.encode(QrContent, environment.getProperty("imgPath"), environment.getProperty("oss.destPath"), true, qrFileName); + File QrCode = QRCodeUtil.encode(QrContent, environment.getProperty("imgPath"), environment.getProperty("destPath"), true, qrFileName); //3.拼接成完整图片 //3.1生成指定规则的图片名