提交 0fe3db91 authored 作者: zhanglibo's avatar zhanglibo

快递鸟

上级 7ad8686c
...@@ -11,7 +11,7 @@ type deliverKdniao struct { ...@@ -11,7 +11,7 @@ type deliverKdniao struct {
var Deliver = deliverKdniao{} var Deliver = deliverKdniao{}
type TrackReq struct { type DeliverTrackReq struct {
CustomerName string `json:"CustomerName"` CustomerName string `json:"CustomerName"`
DeliverNo string `json:"LogisticCode"` DeliverNo string `json:"LogisticCode"`
Code string `json:"ShipperCode"` Code string `json:"ShipperCode"`
...@@ -36,7 +36,7 @@ type DeliverTrackRes struct { ...@@ -36,7 +36,7 @@ type DeliverTrackRes struct {
} }
//Track 物流轨迹 //Track 物流轨迹
func (*deliverKdniao) Track(ctx context.Context, req TrackReq) (res *DeliverTrackRes, err error) { func (*deliverKdniao) Track(ctx context.Context, req DeliverTrackReq) (res *DeliverTrackRes, err error) {
const requestType string = "8001" const requestType string = "8001"
url := "Ebusiness/EbusinessOrderHandle.aspx" url := "Ebusiness/EbusinessOrderHandle.aspx"
result, err := post(ctx, url, requestType, req) result, err := post(ctx, url, requestType, req)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论