京东商城订单

This commit is contained in:
苏尹岚
2020-08-07 09:56:58 +08:00
parent 6da48a7144
commit 724b92c21c
3 changed files with 11 additions and 11 deletions

View File

@@ -105,7 +105,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`
itemInfoList,pauseBizInfo,pin,idSopShipmenttype,scDT`
if isStatus {
params["order_state"] = "WAIT_SELLER_STOCK_OUT,PAUSE,TRADE_CANCELED"
}

View File

@@ -43,16 +43,16 @@ func TestNewInfoList(t *testing.T) {
}
func Test11(t *testing.T) {
type StrA struct {
Cat string `json:"cat"`
Dog int `json:"dog,omitempty"`
Mouse int `json:"mouse"`
change := func(s ...string) {
s[0] = "Go"
s = append(s, "playground")
fmt.Println(s)
}
a := &StrA{
Cat: "加菲",
}
fmt.Println(utils.Format4Output(a, false))
fmt.Println(a.Dog == 0, a.Mouse)
welcome := []string{"hello", "world"}
change(welcome...)
fmt.Println(welcome)
}
func TestAllOrders(t *testing.T) {

View File

@@ -18,7 +18,7 @@ func TestShopQuery(t *testing.T) {
// if err == nil {
// t.Fatal("应该报错找不到门店")
// }
shopInfo, err := api.ShopQuery("11732425")
shopInfo, err := api.ShopQuery("667446")
if err != nil {
t.Fatal(err)
}