修复因为工控机数据通道过早建立连接导致渲染崩溃问题

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2022-01-05 17:05:05 +08:00
parent c8ab0ae124
commit 88fb409a39
9 changed files with 41 additions and 41 deletions

View File

@@ -41,7 +41,7 @@ class TrafficLightNetWorkModel {
}
onSuccess {
if (it?.result != null) {
if (it.result.rsCrossId.isNotEmpty() && !it.result.rectLatLngs.isNullOrEmpty()) {
if (!it.result.rsCrossId.isNullOrEmpty() && !it.result.rectLatLngs.isNullOrEmpty()) {
onSuccess.invoke(it.result)
} else {
onError.invoke("requestRoadID result rsCrossId is null")