1
This commit is contained in:
@@ -18,7 +18,17 @@ func TestCancelOrder(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestOrderGet(t *testing.T) {
|
func TestOrderGet(t *testing.T) {
|
||||||
result, err := api.OrderGet("4074700081425894134")
|
result, err := api.OrderGet("4052380171183237731")
|
||||||
|
products := result["products"].([]interface{})[0].([]interface{})
|
||||||
|
for _, product2 := range products {
|
||||||
|
product := product2.(map[string]interface{})
|
||||||
|
if shelfPosition, ok := product["shelf_position"]; ok {
|
||||||
|
aa := shelfPosition.(string)
|
||||||
|
fmt.Println(aa)
|
||||||
|
} else {
|
||||||
|
fmt.Println("bb")
|
||||||
|
}
|
||||||
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user