opt
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user