From dc41f400a104fc80c0a93472f7b8c2792de2162c Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 13 Jun 2023 19:31:35 +0800 Subject: [PATCH] fix --- utils/qrcode/creator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/qrcode/creator.go b/utils/qrcode/creator.go index 48734c6e..ab023082 100644 --- a/utils/qrcode/creator.go +++ b/utils/qrcode/creator.go @@ -12,7 +12,7 @@ import ( "os" ) -// 带logo的二维码图片生成 content-二维码内容 size-像素单位 logoPath-logo文件路径 x:x轴整体偏移 y:y轴整体偏移 +// 带logo的二维码图片生成 content-二维码内容 size-像素单位 outPath 保存路径(传空则不保存) logoPath-logo文件路径(传空就不带) x:x轴整体偏移 y:y轴整体偏移 func CreateQrCodeBs64WithLogo(content, outPath string, logoPath string, size, x, y int, disableBorder bool) (data string, err error) { code, err := qrcode.New(content, qrcode.High) if err != nil {