This commit is contained in:
lixiaopeng
2020-11-18 10:16:06 +08:00
parent 3146f2a5b0
commit fd05cf69ce
3 changed files with 4 additions and 2 deletions

View File

@@ -178,7 +178,7 @@ class CosStatusController : CosStatusCallback {
latitude: Double,
speed: Float
) {
Log.d(TAG, "sendInformationDirectly poiType= $poiType ---- mainInfoId= $mainInfoId")
Log.d(TAG, "sendInformationDirectly poiType= $poiType ---- mainInfoId= $mainInfoId --- isCustom = ${entity?.isCustom}")
//开始上传
entity?.isCustom?.let {
mainServiceHttpModel.sendInformationMessage(

View File

@@ -1,5 +1,6 @@
package com.zhidao.roadcondition.util
import android.util.Log
import com.google.gson.JsonArray
import com.google.gson.JsonObject
import com.mogo.commons.AbsMogoApplication
@@ -51,6 +52,7 @@ fun getInformationBody(
INFO_TYPE_IMG
}
var infoType = if (isCustom) 1 else 0
Log.d("MainServiceController", "isCustom = $isCustom ---- infoType = $infoType")
return InformationBody(
jsonArray.toString(),
locationInfo.address,

View File

@@ -112,7 +112,7 @@ class BlockStrategy(private val context: Context, private val apis: IMogoService
/**
* 距离策略上报
*
* 1. 过去3分钟行驶距离<1km
* 1. 过去3分钟行驶距离<1km大于30m
* 2. 前车距离<5m获取不到前车距离时默认此项满足
* 3. 当前车速<40km/h
*