aa
This commit is contained in:
@@ -497,7 +497,7 @@ func replaceContent(content string, printMsg *model.PrintMsg) (result string) {
|
|||||||
hexLenqr = "0" + hexLenqr
|
hexLenqr = "0" + hexLenqr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result = strings.ReplaceAll(result, byteSignQrCenter, hexSignQrCenter+hexSignQr+hexLenqr+"000a")
|
result = strings.ReplaceAll(result, byteSignQrCenter, hexSignQrCenter+hexSignQr+hexLenqr+"00")
|
||||||
result = strings.ReplaceAll(result, byteSignQrCenterE, 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) {
|
||||||
@@ -508,7 +508,7 @@ func replaceContent(content string, printMsg *model.PrintMsg) (result string) {
|
|||||||
hexLenqr = "0" + hexLenqr
|
hexLenqr = "0" + hexLenqr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result = strings.ReplaceAll(result, byteSignQrLeft, hexSignQrLeft+hexSignQr+hexLenqr+"000a")
|
result = strings.ReplaceAll(result, byteSignQrLeft, hexSignQrLeft+hexSignQr+hexLenqr+"00")
|
||||||
result = strings.ReplaceAll(result, byteSignQrLeftE, 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) {
|
||||||
@@ -519,7 +519,7 @@ func replaceContent(content string, printMsg *model.PrintMsg) (result string) {
|
|||||||
hexLenqr = "0" + hexLenqr
|
hexLenqr = "0" + hexLenqr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result = strings.ReplaceAll(result, byteSignQrRight, hexSignQrRight+hexSignQr+hexLenqr+"000a")
|
result = strings.ReplaceAll(result, byteSignQrRight, hexSignQrRight+hexSignQr+hexLenqr+"00")
|
||||||
result = strings.ReplaceAll(result, byteSignQrRightE, hexSignQrEnd)
|
result = strings.ReplaceAll(result, byteSignQrRightE, hexSignQrEnd)
|
||||||
}
|
}
|
||||||
if strings.Contains(result, byteSignSound) && strings.Contains(result, byteSignSoundE) {
|
if strings.Contains(result, byteSignSound) && strings.Contains(result, byteSignSoundE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user