|
@@ -122,7 +122,7 @@ public class WeChatMiniProgramUtil {
|
|
|
*/
|
|
|
public String generateQrCodeWithText(String scene, String page, String footerText) throws Exception {
|
|
|
byte[] qrCodeBytes = generateUnlimitedQrCode(scene, page);
|
|
|
- return addTextToQrCode(qrCodeBytes, footerText, "微软雅黑", 18, Color.BLACK);
|
|
|
+ return addTextToQrCode(qrCodeBytes, footerText, null, 18, Color.BLACK);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -212,7 +212,7 @@ public class WeChatMiniProgramUtil {
|
|
|
g.drawImage(originalImage, 0, 0, null);
|
|
|
|
|
|
// 设置字体样式和颜色
|
|
|
- Font font = new Font(null, Font.BOLD, fontSize);
|
|
|
+ Font font = new Font(fontName, Font.BOLD, fontSize);
|
|
|
g.setFont(font);
|
|
|
g.setColor(color);
|
|
|
|