@@ -387,7 +387,7 @@ func replaceContent(content string) (result string) {
|
|||||||
}
|
}
|
||||||
if strings.Contains(result, byteSignQrCenter) && strings.Contains(result, byteSignQrCenterE) {
|
if strings.Contains(result, byteSignQrCenter) && strings.Contains(result, byteSignQrCenterE) {
|
||||||
if qrs := regexpQrc.FindStringSubmatch(result); len(qrs) > 0 {
|
if qrs := regexpQrc.FindStringSubmatch(result); len(qrs) > 0 {
|
||||||
lenqr = len(qrs[1]) / 2
|
lenqr = len(qrs[1])
|
||||||
hexLenqr = fmt.Sprintf("%x", lenqr)
|
hexLenqr = fmt.Sprintf("%x", lenqr)
|
||||||
if len(hexLenqr) < 2 {
|
if len(hexLenqr) < 2 {
|
||||||
hexLenqr = "0" + hexLenqr
|
hexLenqr = "0" + hexLenqr
|
||||||
@@ -398,7 +398,7 @@ func replaceContent(content string) (result string) {
|
|||||||
}
|
}
|
||||||
if strings.Contains(result, byteSignQrLeft) && strings.Contains(result, byteSignQrLeftE) {
|
if strings.Contains(result, byteSignQrLeft) && strings.Contains(result, byteSignQrLeftE) {
|
||||||
if qrs := regexpQrl.FindStringSubmatch(result); len(qrs) > 0 {
|
if qrs := regexpQrl.FindStringSubmatch(result); len(qrs) > 0 {
|
||||||
lenqr = len(qrs[1]) / 2
|
lenqr = len(qrs[1])
|
||||||
hexLenqr = fmt.Sprintf("%x", lenqr)
|
hexLenqr = fmt.Sprintf("%x", lenqr)
|
||||||
if len(hexLenqr) < 2 {
|
if len(hexLenqr) < 2 {
|
||||||
hexLenqr = "0" + hexLenqr
|
hexLenqr = "0" + hexLenqr
|
||||||
@@ -409,7 +409,7 @@ func replaceContent(content string) (result string) {
|
|||||||
}
|
}
|
||||||
if strings.Contains(result, byteSignQrRight) && strings.Contains(result, byteSignQrRightE) {
|
if strings.Contains(result, byteSignQrRight) && strings.Contains(result, byteSignQrRightE) {
|
||||||
if qrs := regexpQrr.FindStringSubmatch(result); len(qrs) > 0 {
|
if qrs := regexpQrr.FindStringSubmatch(result); len(qrs) > 0 {
|
||||||
lenqr = len(qrs[1]) / 2
|
lenqr = len(qrs[1])
|
||||||
hexLenqr = fmt.Sprintf("%x", lenqr)
|
hexLenqr = fmt.Sprintf("%x", lenqr)
|
||||||
if len(hexLenqr) < 2 {
|
if len(hexLenqr) < 2 {
|
||||||
hexLenqr = "0" + hexLenqr
|
hexLenqr = "0" + hexLenqr
|
||||||
|
|||||||
Reference in New Issue
Block a user