Skip to content

Commit

Permalink
Update TransPay.go
Browse files Browse the repository at this point in the history
  • Loading branch information
DicyLa committed Nov 25, 2018
1 parent d0b8039 commit a513611
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion net/httpjson/TransPay.go
Expand Up @@ -123,7 +123,15 @@ func TransPay(p Payload) Payload {
obj.RecordType = object.RecordType
obj.RecordData = ToHexString(object.RecordData)
return obj

case *payload.PrivacyPayload:
obj := new(PrivacyPayload)
obj.PayloadType = uint8(object.PayloadType)
obj.Payload = ToHexString(object.Payload)
obj.EncryptType = uint8(object.EncryptType)
bytesBuffer := bytes.NewBuffer([]byte{})
object.EncryptAttr.Serialize(bytesBuffer)
obj.EncryptAttr = ToHexString(bytesBuffer.Bytes())
return obj

}
return nil
Expand Down

0 comments on commit a513611

Please sign in to comment.