opt BlockStrategy.kt

This commit is contained in:
tongchenfei
2021-01-11 14:21:11 +08:00
parent 71b5e46bf1
commit bc2d4f0d28

View File

@@ -141,7 +141,7 @@ class BlockStrategy(private val context: Context, private val apis: IMogoService
}
val ave = sum / speedCacheList.size
Logger.d(TAG, "平均速度为: $ave")
blockFromSpeed = ave <= 10
blockFromSpeed = ave in 1..10
// 上报平均速度
val location = ServiceApisManager.serviceApis.mapServiceApi.getSingletonLocationClient(context).lastKnowLocation
latLonFromSpeed = MogoLatLng(location.latitude, location.longitude)