如何从GetOrders API调用的结果中获取CountryCode(US,CA等)?
试过这个,但它给了我:224,116
Dim ShipInfo As AddressType = Order.ShippingAddress
Dim CountryCode As String = ShipInfo.Country
试过这个,但它给了我:United Stats,Canada等。
Dim ShipInfo As AddressType = Order.ShippingAddress
Dim CountryCode As String = ShipInfo.CountryName
请帮忙!
答案 0 :(得分:0)
您应该使用:
Dim ShipInfo As AddressType = Order.ShippingAddress
Dim CountryCode As String = ShipInfo.Country.ToString()