[3.3.2] change the time from 1200 to 1000 and invoke status from request to map invoke
This commit is contained in:
@@ -3,6 +3,7 @@ package com.mogo.eagle.core.function.business.ai
|
||||
import android.content.Context
|
||||
import android.os.Handler
|
||||
import android.os.Message
|
||||
import android.util.Log
|
||||
import com.mogo.aicloud.services.socket.IMogoOnMessageListener
|
||||
import com.mogo.aicloud.services.socket.MogoAiCloudSocketManager
|
||||
import com.mogo.commons.debug.DebugConfig
|
||||
@@ -218,9 +219,6 @@ class AiCloudIdentifyDataManager : IMoGoPlanningRottingListener,
|
||||
if (dataReceive) {
|
||||
// 请求地图开始漫游
|
||||
MogoMapUIController.getInstance().setRomaMode(FunctionBuildConfig.romaModeStyle)
|
||||
CallerMapRomaListener.invokeMapRoma(true)
|
||||
} else {
|
||||
CallerMapRomaListener.invokeMapRoma(false)
|
||||
}
|
||||
},
|
||||
{ errorMsg ->
|
||||
@@ -249,6 +247,7 @@ class AiCloudIdentifyDataManager : IMoGoPlanningRottingListener,
|
||||
//status 0:进入漫游模式成功 1;进入漫游模式失败 2:正常结束漫游 3:切换视角结束漫游
|
||||
override fun mapRomaStatus(status: Int, msg: String) {
|
||||
super.mapRomaStatus(status, msg)
|
||||
Log.d("emArrow","Thread:${Thread.currentThread().name}")
|
||||
when (status) {
|
||||
0 -> {
|
||||
MapBizTrace.log(
|
||||
@@ -259,6 +258,7 @@ class AiCloudIdentifyDataManager : IMoGoPlanningRottingListener,
|
||||
)
|
||||
showAiCloud.set(true)
|
||||
FunctionBuildConfig.isDrawIdentifyData = false
|
||||
CallerMapRomaListener.invokeMapRoma(true)
|
||||
// 5秒没有触发 则预警日志写入
|
||||
handler.sendEmptyMessageDelayed(H_ERROR_CLOUD, H_DELAY_TIME)
|
||||
}
|
||||
@@ -267,6 +267,7 @@ class AiCloudIdentifyDataManager : IMoGoPlanningRottingListener,
|
||||
m.what = H_ERROR_MAP
|
||||
m.obj = msg
|
||||
handler.sendMessage(m)
|
||||
CallerMapRomaListener.invokeMapRoma(false)
|
||||
closeRoma(false)
|
||||
}
|
||||
2 -> { // 地图自动漫游结束,重置状态,调用close通知服务端
|
||||
@@ -298,6 +299,7 @@ class AiCloudIdentifyDataManager : IMoGoPlanningRottingListener,
|
||||
aiCloudDataChange.set(false)
|
||||
MapIdentifySubscriber.instance.clearAiCloudRoma()
|
||||
FunctionBuildConfig.isDrawIdentifyData = true
|
||||
CallerMapRomaListener.invokeMapRoma(false)
|
||||
if (invokeCloud) {
|
||||
closeRoma(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user