diff --git a/platformapi/ebaiapi/order_test.go b/platformapi/ebaiapi/order_test.go index 7fff85b5..d4b0e8ce 100644 --- a/platformapi/ebaiapi/order_test.go +++ b/platformapi/ebaiapi/order_test.go @@ -16,7 +16,7 @@ func TestOrderGet(t *testing.T) { } func TestOrderGet2(t *testing.T) { - result, err := api.OrderGet2("1576493808229489038") + result, err := api.OrderGet2("1577252398158729707") if err != nil { t.Fatal(err) } else { @@ -42,7 +42,7 @@ func TestOrderList(t *testing.T) { } func TestOrderListAll(t *testing.T) { - result, err := api.OrderListAll("", 32267089397, 1563379200, 1563465599, 0) + result, err := api.OrderListAll("", 32267184047, utils.Str2Time("2019-12-25").Unix(), utils.Str2Time("2019-12-26").Unix(), 0) if err != nil { t.Fatal(err) } else { @@ -145,3 +145,10 @@ func TestOrderPartRefund(t *testing.T) { t.Fatal(err) } } + +func TestOrderCancel(t *testing.T) { + err := api.OrderCancel("2122788271803194389", CancelTypeCustom, "admin") + if err != nil { + t.Fatal(err) + } +}