- remove debug msg
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi"
|
|
||||||
"git.rosy.net.cn/baseapi/platformapi"
|
"git.rosy.net.cn/baseapi/platformapi"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
)
|
)
|
||||||
@@ -175,7 +174,7 @@ func (a *API) GetCoordinateDistrictCode(lng, lat float64) (districtCode int) {
|
|||||||
"location": fmt.Sprintf("%.6f,%.6f", lng, lat),
|
"location": fmt.Sprintf("%.6f,%.6f", lng, lat),
|
||||||
}
|
}
|
||||||
result, err := a.AccessAPI("geocode/regeo", params)
|
result, err := a.AccessAPI("geocode/regeo", params)
|
||||||
baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
|
// baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
addressComponent := result["regeocode"].(map[string]interface{})["addressComponent"].(map[string]interface{})
|
addressComponent := result["regeocode"].(map[string]interface{})["addressComponent"].(map[string]interface{})
|
||||||
if strAdcode, ok := addressComponent["adcode"].(string); ok {
|
if strAdcode, ok := addressComponent["adcode"].(string); ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user