修改QrImgUtils,将获取生成的二维码图片,从yml文件获取
This commit is contained in:
parent
a6773e0cca
commit
e7cb376b87
@ -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生成指定规则的图片名
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user