- mtwmapi.OrderGetOrderDetail2

This commit is contained in:
gazebo
2019-05-12 18:15:47 +08:00
parent 9620931eec
commit 46ee522bbb
5 changed files with 92 additions and 14 deletions

View File

@@ -38,21 +38,19 @@ type CallbackResponse struct {
Data string `json:"data"`
}
type CallbackSysInfo struct {
// 全额退款没有Food, FoodList, Money项
type CallbackRefundInfo struct {
Timestamp int64 `json:"timestamp"`
AppID string `json:"app_id"`
Sig string `json:"sig"`
}
// 全额退款没有Food, FoodList, Money项
type CallbackRefundInfo struct {
CallbackSysInfo
OrderID int64 `json:"order_id"`
NotifyType string `json:"notify_type"`
Reason string `json:"reason"`
ResType int `json:"res_type"`
IsAppeal int `json:"is_appeal"`
Pictures string `json:"pictures"`
OrderID int64 `json:"order_id"`
NotifyType string `json:"notify_type"`
Reason string `json:"reason"`
ResType int `json:"res_type"`
IsAppeal int `json:"is_appeal"`
Pictures string `json:"pictures"`
PictureList []string `json:"pictureList"`
Food string `json:"food"`
FoodList []*RefundSkuDetail `json:"foodList"`
@@ -116,6 +114,9 @@ func (a *API) GetCallbackMsg(request *http.Request) (msg *CallbackMsg, callbackR
if refundData.Food != "" {
utils.UnmarshalUseNumber([]byte(refundData.Food), &refundData.FoodList)
}
if refundData.Pictures != "" {
utils.UnmarshalUseNumber([]byte(refundData.Pictures), &refundData.PictureList)
}
msg.Data = refundData
}
}