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

@@ -41,8 +41,8 @@ func (obj *GetSecurityCount) SetParams(req *GetSecurityCountRequest) {
}
func (obj *GetSecurityCount) Serialize() ([]byte, error) {
obj.reqHeader.PkgLen1 = 2 + uint16(len(obj.contentHex)) + 2
obj.reqHeader.PkgLen2 = 2 + uint16(len(obj.contentHex)) + 2
obj.reqHeader.PkgLen1 = 2 + 4 + 2
obj.reqHeader.PkgLen2 = 2 + 4 + 2
buf := new(bytes.Buffer)
err := binary.Write(buf, binary.LittleEndian, obj.reqHeader)