|
@@ -997,7 +997,7 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
BitMatrix bitMatrix = qrCodeWriter.encode(qrTxt, BarcodeFormat.QR_CODE, 180, 180);
|
|
BitMatrix bitMatrix = qrCodeWriter.encode(qrTxt, BarcodeFormat.QR_CODE, 180, 180);
|
|
BufferedImage qrImage = toBufferedImage(bitMatrix);
|
|
BufferedImage qrImage = toBufferedImage(bitMatrix);
|
|
// 在模板上添加用户二维码(地址,左边距,上边距,图片宽度,图片高度,未知)
|
|
// 在模板上添加用户二维码(地址,左边距,上边距,图片宽度,图片高度,未知)
|
|
- g.drawImage(qrImage, 1213, 155, 180, 180, null);
|
|
|
|
|
|
+ g.drawImage(qrImage, 1205, 145, 180, 180, null);
|
|
// 完成模板修改
|
|
// 完成模板修改
|
|
g.dispose();
|
|
g.dispose();
|
|
// 获取新文件的地址
|
|
// 获取新文件的地址
|
|
@@ -1092,7 +1092,7 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
BitMatrix bitMatrix = qrCodeWriter.encode(qrTxt, BarcodeFormat.QR_CODE, 180, 180);
|
|
BitMatrix bitMatrix = qrCodeWriter.encode(qrTxt, BarcodeFormat.QR_CODE, 180, 180);
|
|
BufferedImage qrImage = toBufferedImage(bitMatrix);
|
|
BufferedImage qrImage = toBufferedImage(bitMatrix);
|
|
// 在模板上添加用户二维码(地址,左边距,上边距,图片宽度,图片高度,未知)
|
|
// 在模板上添加用户二维码(地址,左边距,上边距,图片宽度,图片高度,未知)
|
|
- g.drawImage(qrImage, 1213, 155, 180, 180, null);
|
|
|
|
|
|
+ g.drawImage(qrImage, 1205, 145, 180, 180, null);
|
|
// 完成模板修改
|
|
// 完成模板修改
|
|
g.dispose();
|
|
g.dispose();
|
|
// 获取新文件的地址
|
|
// 获取新文件的地址
|