From f628198de9b7e55b59983d892e781c681ddb0796 Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Sat, 10 Oct 2020 11:58:40 +0800 Subject: [PATCH] add log --- .../zhidao/roadcondition/service/MainServiceController.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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