fix cancel j&t
This commit is contained in:
parent
6bf4914ade
commit
89d2f1c8fb
|
@ -17,4 +17,5 @@ const (
|
||||||
const (
|
const (
|
||||||
msgTypeEstimateFee = "FREIGHTQUERY"
|
msgTypeEstimateFee = "FREIGHTQUERY"
|
||||||
msgTypeCreateOrder = "ORDERCREATE"
|
msgTypeCreateOrder = "ORDERCREATE"
|
||||||
|
msgTypeCancelOrder = "UPDATE"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue