aa
This commit is contained in:
@@ -63,8 +63,8 @@ const (
|
|||||||
hexSignQrCenter = "1d5802"
|
hexSignQrCenter = "1d5802"
|
||||||
hexSignQrLeft = "1d5800"
|
hexSignQrLeft = "1d5800"
|
||||||
hexSignQrRight = "1d5804"
|
hexSignQrRight = "1d5804"
|
||||||
hexSignQr = "0001061600" //"1b5a0001061600"
|
hexSignQr = "1b5a0001061600" //"1b5a0001061600"
|
||||||
hexSignQrEnd = "000a" //000a0a0a1b40
|
hexSignQrEnd = "000a" //000a0a0a1b40
|
||||||
|
|
||||||
byteSignBR = "3c62723e" //换行
|
byteSignBR = "3c62723e" //换行
|
||||||
byteSignCenter = "3c63656e7465723e" //居中
|
byteSignCenter = "3c63656e7465723e" //居中
|
||||||
@@ -376,15 +376,15 @@ func replaceContent(content string) (result string) {
|
|||||||
}
|
}
|
||||||
if strings.Contains(result, byteSignQrCenter) && strings.Contains(result, byteSignQrCenterE) {
|
if strings.Contains(result, byteSignQrCenter) && strings.Contains(result, byteSignQrCenterE) {
|
||||||
result = strings.ReplaceAll(result, byteSignQrCenter, hexSignQrCenter+hexSignQr)
|
result = strings.ReplaceAll(result, byteSignQrCenter, hexSignQrCenter+hexSignQr)
|
||||||
result = strings.ReplaceAll(result, byteSignQrCenterE, hexSignBROrEXE+hexSignQrEnd)
|
result = strings.ReplaceAll(result, byteSignQrCenterE, hexSignQrEnd)
|
||||||
}
|
}
|
||||||
if strings.Contains(result, byteSignQrLeft) && strings.Contains(result, byteSignQrLeftE) {
|
if strings.Contains(result, byteSignQrLeft) && strings.Contains(result, byteSignQrLeftE) {
|
||||||
result = strings.ReplaceAll(result, byteSignQrLeft, hexSignQrLeft+hexSignQr)
|
result = strings.ReplaceAll(result, byteSignQrLeft, hexSignQrLeft+hexSignQr)
|
||||||
result = strings.ReplaceAll(result, byteSignQrLeftE, hexSignBROrEXE+hexSignQrEnd)
|
result = strings.ReplaceAll(result, byteSignQrLeftE, hexSignQrEnd)
|
||||||
}
|
}
|
||||||
if strings.Contains(result, byteSignQrRight) && strings.Contains(result, byteSignQrRightE) {
|
if strings.Contains(result, byteSignQrRight) && strings.Contains(result, byteSignQrRightE) {
|
||||||
result = strings.ReplaceAll(result, byteSignQrRight, hexSignQrRight+hexSignQr)
|
result = strings.ReplaceAll(result, byteSignQrRight, hexSignQrRight+hexSignQr)
|
||||||
result = strings.ReplaceAll(result, byteSignQrRightE, hexSignBROrEXE+hexSignQrEnd)
|
result = strings.ReplaceAll(result, byteSignQrRightE, hexSignQrEnd)
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user