diff --git a/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/MainServiceController.kt b/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/MainServiceController.kt index 64eb300bb4..19e07a22be 100644 --- a/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/MainServiceController.kt +++ b/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/MainServiceController.kt @@ -264,20 +264,23 @@ class MainServiceController { longitude: Double, latitude: Double ) { - Log.d(TAG, " geoLocation -- poiType = $poiType"); + Log.d(TAG, " geoLocation -- poiType = $poiType") LocationUtil.getInstance() .geoCodeLocation(locationInfo.toLatLngPoint(), { locInfo: LocationInfo -> + Log.d(TAG, "geoLocation -------start -->") postInformationMessage( getInformationBody(type, url, locationInfo, isCustom, trafficInfoType, isShare, poiType,mainInfoId,longitude,latitude), customSend ) }, { //转换失败的情况下再重试一次 + Log.d(TAG, "geoLocation -------true-->") geoRetryed = if (!geoRetryed) { geoLocation(type, url, locationInfo, isCustom, trafficInfoType, isShare, customSend, poiType,mainInfoId,longitude,latitude) true } else { //如果两次都失败,直接上报服务端 + Log.d(TAG, "geoLocation ---- postInformationMessage ---false-->") postInformationMessage( getInformationBody(type, url, locationInfo, isCustom, trafficInfoType, isShare, poiType,mainInfoId,longitude,latitude), customSend