diff --git a/partnerapi/jtexpress/const.go b/partnerapi/jtexpress/const.go index 6a7e3e0..641bf78 100644 --- a/partnerapi/jtexpress/const.go +++ b/partnerapi/jtexpress/const.go @@ -17,4 +17,5 @@ const ( const ( msgTypeEstimateFee = "FREIGHTQUERY" msgTypeCreateOrder = "ORDERCREATE" + msgTypeCancelOrder = "UPDATE" ) diff --git a/partnerapi/jtexpress/jtexpress.go b/partnerapi/jtexpress/jtexpress.go index 34457c2..9823981 100644 --- a/partnerapi/jtexpress/jtexpress.go +++ b/partnerapi/jtexpress/jtexpress.go @@ -66,7 +66,7 @@ func (c *Client) CancelOrder(req *CancelOrderReq) (r Response) { body := map[string]string{ "logistics_interface": data, "data_digest": c.getDigest(data), - "msg_type": msgTypeEstimateFee, + "msg_type": msgTypeCancelOrder, "eccompanyid": c.EccompanyID, } r.Request.Body = pjson.ToBytes(body)