This commit is contained in:
苏尹岚
2021-04-09 14:35:05 +08:00
parent ba0082d98b
commit d47b048a1e
4 changed files with 29 additions and 27 deletions

View File

@@ -9,16 +9,16 @@ import (
)
type CallBackResult struct {
OrderStateRemark string `json:"orderStateRemark"`
OrderRemark string `json:"orderRemark"`
OrderSellerPrice string `json:"orderSellerPrice"`
OrderState string `json:"orderState"`
OrderType string `json:"orderType"`
OrderPayment string `json:"orderPayment"`
PayType string `json:"payType"`
StoreID string `json:"storeId"`
OrderTotalPrice string `json:"orderTotalPrice"`
// OrderExt *OrderExt `json:"orderExt"`
OrderStateRemark string `json:"orderStateRemark"`
OrderRemark string `json:"orderRemark"`
OrderSellerPrice string `json:"orderSellerPrice"`
OrderState string `json:"orderState"`
OrderType string `json:"orderType"`
OrderPayment string `json:"orderPayment"`
PayType string `json:"payType"`
StoreID string `json:"storeId"`
OrderTotalPrice string `json:"orderTotalPrice"`
OrderExt string `json:"orderExt"`
StoreOrder string `json:"storeOrder"`
OrderStartTime string `json:"orderStartTime"`
OrderID string `json:"orderId"`

View File

@@ -88,9 +88,9 @@ type GetOrderResult struct {
WareID string `json:"wareId"`
GiftPoint string `json:"giftPoint"`
} `json:"itemInfoList"`
StoreID string `json:"storeId"`
OrderTotalPrice string `json:"orderTotalPrice"`
// OrderExt *OrderExt `json:"orderExt"`
StoreID string `json:"storeId"`
OrderTotalPrice string `json:"orderTotalPrice"`
OrderExt string `json:"orderExt"`
StoreOrder string `json:"storeOrder"`
OrderStartTime string `json:"orderStartTime"`
OrderID string `json:"orderId"`
@@ -105,11 +105,13 @@ type GetOrderResult struct {
}
type OrderExt struct {
O2ODeliveryTime string `json:"o2oDeliveryTime"`
// AerfaTimeIDSopShipmentType string `json:"aerfaTime.idSopShipmentType"`
StoreName string `json:"storeName"`
Road string `json:"road"`
Contact string `json:"contact"`
AerfaTimeIDSopShipmentType string `json:"aerfaTime.idSopShipmentType"`
PromiseMsg string `json:"promiseMsg"`
Road string `json:"road"`
Contact string `json:"contact"`
O2ODeliveryTime string `json:"o2oDeliveryTime"`
SiteID string `json:"siteId"`
StoreName string `json:"storeName"`
}
//查询单个订单
@@ -120,7 +122,7 @@ func (a *API) GetOrder(orderID int64, isStatus bool) (getOrderResult *GetOrderRe
params["optional_fields"] = `orderType,payType,orderTotalPrice,orderSellerPrice,
orderPayment,freightPrice,orderState,orderStateRemark,
orderStartTime,orderEndTime,orderRemark,consigneeInfo,
itemInfoList,pauseBizInfo,pin,idSopShipmenttype,scDT,sellerDiscount,menDianId,storeId,balanceUsed`
itemInfoList,pauseBizInfo,pin,idSopShipmenttype,scDT,sellerDiscount,menDianId,storeId,balanceUsed,orderExt`
if isStatus {
params["order_state"] = "WAIT_SELLER_STOCK_OUT,TRADE_CANCELED,PAUSE,WAIT_GOODS_RECEIVE_CONFIRM,FINISHED_L"
}