mirror of
https://github.com/bensema/gotdx.git
synced 2025-11-21 02:45:33 +08:00
新增options来配置
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
"encoding/hex"
|
||||
"github.com/bensema/gotdx/util"
|
||||
)
|
||||
|
||||
type Hello2 struct {
|
||||
@@ -57,7 +56,7 @@ func (obj *Hello2) Serialize() ([]byte, error) {
|
||||
func (obj *Hello2) UnSerialize(header interface{}, data []byte) error {
|
||||
obj.respHeader = header.(*RespHeader)
|
||||
|
||||
serverInfo := util.Utf8ToGbk(data[58:])
|
||||
serverInfo := Utf8ToGbk(data[58:])
|
||||
//fmt.Println(hex.EncodeToString(data))
|
||||
obj.reply.Info = serverInfo
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user