From 8350944f7ab07a7df027fa93064ac2465507e314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 11 Aug 2022 11:03:57 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp_utils.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/business/jxstore/event/event_tcp_utils.go b/business/jxstore/event/event_tcp_utils.go index cf52e5344..989ea3261 100644 --- a/business/jxstore/event/event_tcp_utils.go +++ b/business/jxstore/event/event_tcp_utils.go @@ -575,18 +575,12 @@ func int2h8l8(i int64) (h, l string) { r2, _ := strconv.ParseInt(end8, 2, 32) h = fmt.Sprintf("%x", r1) l = fmt.Sprintf("%x", r2) - if len(h) < 2 { + if len(h)%2 != 0 { h = "0" + h } - if len(l) < 2 { + if len(l)%2 != 0 { l = "0" + l } - //if len(h)%2 != 0 { - // h = "0" + h - //} - //if len(l)%2 != 0 { - // l = "0" + l - //} return h, l }