This commit is contained in:
laodaming
2023-06-16 10:27:42 +08:00
parent 9769698f22
commit 74474f6f16
3 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ import (
"os"
)
// 带logo的二维码图片生成 content-二维码内容 size-像素单位 outPath 保存路径(传空则不保存) logoPath-logo文件路径(传空就不带) xx轴整体偏移 y:y轴整体偏移
// 带logo的二维码图片生成 content-二维码内容 size-像素单位 outPath 保存路径(传空则不保存) disableBorder是否不启用边框 logoPath-logo文件路径(传空就不带) xx轴整体偏移 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 {