msgtype
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user