获取数据

This commit is contained in:
邹宗楠
2022-08-04 14:32:16 +08:00
parent c73f22ab60
commit efeb2ac31d

View File

@@ -570,10 +570,10 @@ func int2h8l8(i int64) (h, l string) {
r2, _ := strconv.ParseInt(end8, 2, 64)
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
}
return h, l