fix cancel j&t

This commit is contained in:
Sinh 2023-10-13 14:12:22 +07:00
parent 6bf4914ade
commit 89d2f1c8fb
2 changed files with 2 additions and 1 deletions

View File

@ -17,4 +17,5 @@ const (
const ( const (
msgTypeEstimateFee = "FREIGHTQUERY" msgTypeEstimateFee = "FREIGHTQUERY"
msgTypeCreateOrder = "ORDERCREATE" msgTypeCreateOrder = "ORDERCREATE"
msgTypeCancelOrder = "UPDATE"
) )

View File

@ -66,7 +66,7 @@ func (c *Client) CancelOrder(req *CancelOrderReq) (r Response) {
body := map[string]string{ body := map[string]string{
"logistics_interface": data, "logistics_interface": data,
"data_digest": c.getDigest(data), "data_digest": c.getDigest(data),
"msg_type": msgTypeEstimateFee, "msg_type": msgTypeCancelOrder,
"eccompanyid": c.EccompanyID, "eccompanyid": c.EccompanyID,
} }
r.Request.Body = pjson.ToBytes(body) r.Request.Body = pjson.ToBytes(body)