This commit is contained in:
bense
2022-05-14 13:20:18 +08:00
parent 562d11daaf
commit 13073cd8e4
12 changed files with 129 additions and 77 deletions

View File

@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/binary"
"encoding/hex"
"gotdx/utils"
"gotdx/util"
)
type Hello1 struct {
@@ -59,7 +59,7 @@ func (obj *Hello1) Serialize() ([]byte, error) {
func (obj *Hello1) UnSerialize(header interface{}, data []byte) error {
obj.respHeader = header.(*RespHeader)
serverInfo := utils.Utf8ToGbk(data[68:])
serverInfo := util.Utf8ToGbk(data[68:])
obj.reply.Info = serverInfo
return nil