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