This commit is contained in:
suyl
2021-07-02 16:56:58 +08:00
parent a9abdb257d
commit 481de6b1b6

View File

@@ -352,39 +352,39 @@ func replaceContent(content string) (result string) {
} }
if strings.Contains(result, byteSignCenter) && strings.Contains(result, byteSignCenterE) { if strings.Contains(result, byteSignCenter) && strings.Contains(result, byteSignCenterE) {
result = strings.ReplaceAll(result, byteSignCenter, hexSignCenter) result = strings.ReplaceAll(result, byteSignCenter, hexSignCenter)
result = strings.ReplaceAll(result, byteSignCenterE, hexSignLeft) result = strings.ReplaceAll(result, byteSignCenterE, hexSignBROrEXE+hexSignLeft)
} }
if strings.Contains(result, byteSignLeft) && strings.Contains(result, byteSignLeftE) { if strings.Contains(result, byteSignLeft) && strings.Contains(result, byteSignLeftE) {
result = strings.ReplaceAll(result, byteSignLeft, hexSignLeft) result = strings.ReplaceAll(result, byteSignLeft, hexSignLeft)
result = strings.ReplaceAll(result, byteSignLeftE, hexSignLeft) result = strings.ReplaceAll(result, byteSignLeftE, hexSignBROrEXE+hexSignLeft)
} }
if strings.Contains(result, byteSignRight) && strings.Contains(result, byteSignRightE) { if strings.Contains(result, byteSignRight) && strings.Contains(result, byteSignRightE) {
result = strings.ReplaceAll(result, byteSignRight, hexSignRight) result = strings.ReplaceAll(result, byteSignRight, hexSignRight)
result = strings.ReplaceAll(result, byteSignRightE, hexSignLeft) result = strings.ReplaceAll(result, byteSignRightE, hexSignBROrEXE+hexSignLeft)
} }
if strings.Contains(result, byteSignBig) && strings.Contains(result, byteSignBigE) { if strings.Contains(result, byteSignBig) && strings.Contains(result, byteSignBigE) {
result = strings.ReplaceAll(result, byteSignBig, hexSignBig) result = strings.ReplaceAll(result, byteSignBig, hexSignBig)
result = strings.ReplaceAll(result, byteSignBigE, hexSignNormal) result = strings.ReplaceAll(result, byteSignBigE, hexSignBROrEXE+hexSignNormal)
} }
if strings.Contains(result, byteSignHighBig) && strings.Contains(result, byteSignHighBigE) { if strings.Contains(result, byteSignHighBig) && strings.Contains(result, byteSignHighBigE) {
result = strings.ReplaceAll(result, byteSignHighBig, hexSignHighBig) result = strings.ReplaceAll(result, byteSignHighBig, hexSignHighBig)
result = strings.ReplaceAll(result, byteSignHighBigE, hexSignNormal) result = strings.ReplaceAll(result, byteSignHighBigE, hexSignBROrEXE+hexSignNormal)
} }
if strings.Contains(result, byteSignWideBig) && strings.Contains(result, byteSignWideBigE) { if strings.Contains(result, byteSignWideBig) && strings.Contains(result, byteSignWideBigE) {
result = strings.ReplaceAll(result, byteSignWideBig, hexSignWideBig) result = strings.ReplaceAll(result, byteSignWideBig, hexSignWideBig)
result = strings.ReplaceAll(result, byteSignWideBigE, hexSignNormal) result = strings.ReplaceAll(result, byteSignWideBigE, hexSignBROrEXE+hexSignNormal)
} }
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, hexSignQrEnd) result = strings.ReplaceAll(result, byteSignQrCenterE, hexSignBROrEXE+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, hexSignQrEnd) result = strings.ReplaceAll(result, byteSignQrLeftE, hexSignBROrEXE+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, hexSignQrEnd) result = strings.ReplaceAll(result, byteSignQrRightE, hexSignBROrEXE+hexSignQrEnd)
} }
return result return result
} }