京东商城尝试订单

This commit is contained in:
苏尹岚
2020-05-26 18:33:21 +08:00
parent d011e53203
commit 153b64ef9e
5 changed files with 199 additions and 3 deletions

View File

@@ -53,3 +53,14 @@ func Test11(t *testing.T) {
bodyData, _ := ioutil.ReadAll(response.Body)
fmt.Println("test1", string(bodyData))
}
func TestAllOrders(t *testing.T) {
result, err := api.AllOrders(&AllOrdersParam{
Current: 1,
PageSize: 10,
})
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}