From a7b7a2aa3bcce82c58b1060d850e976486521a94 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Wed, 7 Jul 2021 16:43:19 +0800 Subject: [PATCH] Revert "aa" This reverts commit 0ae9289386790198cbfbb15b078eb98ae74ea819. --- business/jxstore/event/event_tcp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 2e7f39056..afbbdab2f 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -387,7 +387,7 @@ func replaceContent(content string) (result string) { } if strings.Contains(result, byteSignQrCenter) && strings.Contains(result, byteSignQrCenterE) { if qrs := regexpQrc.FindStringSubmatch(result); len(qrs) > 0 { - lenqr = len(qrs[1]) / 2 + lenqr = len(qrs[1]) hexLenqr = fmt.Sprintf("%x", lenqr) if len(hexLenqr) < 2 { hexLenqr = "0" + hexLenqr @@ -398,7 +398,7 @@ func replaceContent(content string) (result string) { } if strings.Contains(result, byteSignQrLeft) && strings.Contains(result, byteSignQrLeftE) { if qrs := regexpQrl.FindStringSubmatch(result); len(qrs) > 0 { - lenqr = len(qrs[1]) / 2 + lenqr = len(qrs[1]) hexLenqr = fmt.Sprintf("%x", lenqr) if len(hexLenqr) < 2 { hexLenqr = "0" + hexLenqr @@ -409,7 +409,7 @@ func replaceContent(content string) (result string) { } if strings.Contains(result, byteSignQrRight) && strings.Contains(result, byteSignQrRightE) { if qrs := regexpQrr.FindStringSubmatch(result); len(qrs) > 0 { - lenqr = len(qrs[1]) / 2 + lenqr = len(qrs[1]) hexLenqr = fmt.Sprintf("%x", lenqr) if len(hexLenqr) < 2 { hexLenqr = "0" + hexLenqr