This commit is contained in:
邹宗楠
2026-06-01 15:59:51 +08:00
parent 14b857441b
commit 3b37289dd5
6 changed files with 38 additions and 14 deletions

View File

@@ -18,7 +18,11 @@ func TestCancelOrder(t *testing.T) {
}
func TestOrderGet(t *testing.T) {
result, err := api.OrderGet("4073360274750788248")
result, err := api.OrderGet("4013706166788204275")
orderMap := result["order"].(map[string]interface{})
sendFeeDetail := orderMap["send_fee_detail"].(map[string]interface{})["one_on_one_delivery_fee"]
fmt.Println(orderMap)
fmt.Println(sendFeeDetail)
products := result["products"].([]interface{})[0].([]interface{})
for _, product2 := range products {
product := product2.(map[string]interface{})