This commit is contained in:
苏尹岚
2020-07-29 16:27:33 +08:00
parent 06e2a75f8c
commit a738dc4359
2 changed files with 8 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ type CallBackResult struct {
OrderID string `json:"orderId"`
OrderSource string `json:"orderSource"`
FreightPrice string `json:"freightPrice"`
MsgType string `json:"msgType"`
ConsigneeInfo *CallBackConsigneeInfo `json:"consigneeInfo"`
ItemInfoList []*CallBackItemInfoList `json:"itemInfoList"`
}
@@ -70,5 +71,6 @@ func (a *API) GetCallbackMsg(request *http.Request) (call *CallBackResult, err e
if err = json.Unmarshal([]byte(mapData["orderInfo"].(string)), &call); err != nil {
return nil, err
}
call.MsgType = mapData["msgType"].(string)
return call, err
}