aa
This commit is contained in:
@@ -444,7 +444,9 @@ func (a *API) GetCoordinateFromAddressAll(address string, cityInfo string) (getC
|
|||||||
getCoordinateFromAddressByPageAllResult.Lat = utils.Str2Float64WithDefault(locationList[1], 0)
|
getCoordinateFromAddressByPageAllResult.Lat = utils.Str2Float64WithDefault(locationList[1], 0)
|
||||||
}
|
}
|
||||||
getCoordinateFromAddressByPageAllResult.CityName = geocode["city"].(string)
|
getCoordinateFromAddressByPageAllResult.CityName = geocode["city"].(string)
|
||||||
getCoordinateFromAddressByPageAllResult.AdName = geocode["district"].(string)
|
if str, ok := geocode["district"].(string); ok {
|
||||||
|
getCoordinateFromAddressByPageAllResult.AdName = str
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return getCoordinateFromAddressByPageAllResult, err
|
return getCoordinateFromAddressByPageAllResult, err
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestQuerySingleOrder(t *testing.T) {
|
func TestQuerySingleOrder(t *testing.T) {
|
||||||
retVal, err := api.QuerySingleOrder("2027681234000062")
|
retVal, err := api.QuerySingleOrder("2111729701001462")
|
||||||
t.Log(utils.Format4Output(retVal, false))
|
t.Log(utils.Format4Output(retVal, false))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ func TestOrderViewStatus(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestOrderGetOrderDetail(t *testing.T) {
|
func TestOrderGetOrderDetail(t *testing.T) {
|
||||||
result, err := api.OrderGetOrderDetail(112028023003605293, false)
|
result, err := api.OrderGetOrderDetail(70707103086675718, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user