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