f
This commit is contained in:
@@ -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样式)
|
||||
|
||||
Reference in New Issue
Block a user