jtexpress #13

Merged
sinhluu merged 9 commits from jtexpress into master 2023-10-25 02:19:51 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 89d2f1c8fb - Show all commits

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)