京东商城订单
This commit is contained in:
@@ -105,7 +105,7 @@ func (a *API) GetOrder(orderID int64, isStatus bool) (getOrderResult *GetOrderRe
|
|||||||
params["optional_fields"] = `orderType,payType,orderTotalPrice,orderSellerPrice,
|
params["optional_fields"] = `orderType,payType,orderTotalPrice,orderSellerPrice,
|
||||||
orderPayment,freightPrice,orderState,orderStateRemark,
|
orderPayment,freightPrice,orderState,orderStateRemark,
|
||||||
orderStartTime,orderEndTime,orderRemark,consigneeInfo,
|
orderStartTime,orderEndTime,orderRemark,consigneeInfo,
|
||||||
itemInfoList,pauseBizInfo,pin,idSopShipmenttype`
|
itemInfoList,pauseBizInfo,pin,idSopShipmenttype,scDT`
|
||||||
if isStatus {
|
if isStatus {
|
||||||
params["order_state"] = "WAIT_SELLER_STOCK_OUT,PAUSE,TRADE_CANCELED"
|
params["order_state"] = "WAIT_SELLER_STOCK_OUT,PAUSE,TRADE_CANCELED"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,16 +43,16 @@ func TestNewInfoList(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test11(t *testing.T) {
|
func Test11(t *testing.T) {
|
||||||
type StrA struct {
|
change := func(s ...string) {
|
||||||
Cat string `json:"cat"`
|
s[0] = "Go"
|
||||||
Dog int `json:"dog,omitempty"`
|
s = append(s, "playground")
|
||||||
Mouse int `json:"mouse"`
|
fmt.Println(s)
|
||||||
}
|
}
|
||||||
a := &StrA{
|
|
||||||
Cat: "加菲",
|
welcome := []string{"hello", "world"}
|
||||||
}
|
change(welcome...)
|
||||||
fmt.Println(utils.Format4Output(a, false))
|
fmt.Println(welcome)
|
||||||
fmt.Println(a.Dog == 0, a.Mouse)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAllOrders(t *testing.T) {
|
func TestAllOrders(t *testing.T) {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ func TestShopQuery(t *testing.T) {
|
|||||||
// if err == nil {
|
// if err == nil {
|
||||||
// t.Fatal("应该报错找不到门店")
|
// t.Fatal("应该报错找不到门店")
|
||||||
// }
|
// }
|
||||||
shopInfo, err := api.ShopQuery("11732425")
|
shopInfo, err := api.ShopQuery("667446")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user