This commit is contained in:
Mrx
2026-03-02 17:11:55 +08:00
parent be6d3e5f2c
commit bbab0e3b5f

View File

@@ -83,11 +83,16 @@ func (s *ImageService) ProcessImageWithQRCode(qrcodeType, qrcodeUrl string) ([]b
qrX = 192 // 距左边180px
qrY = imgHeight - qrSize - 190 // 距底边100px
case "invitation", "invitation_01", "invitation_02", "invitation_03", "invitation_04":
// invitation 类型(多模板):二维码尺寸与位置一致
case "invitation", "invitation_01":
// invitation_01:二维码尺寸与位置
qrSize = 138
qrX = (imgWidth - qrSize) / 2
qrY = 140
case "invitation_02", "invitation_03", "invitation_04":
// invitation_02/03/04二维码往图片下面一点
qrSize = 138
qrX = (imgWidth - qrSize) / 2
qrY = 160
default:
// 默认promote样式