@@ -182,7 +182,7 @@ class MoGoAutopilotControlProvider :
|
||||
|
||||
override fun onStopServer() {
|
||||
// ToastUtils.showLong("司机端服务停止!")
|
||||
// ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_driver_service_stop)
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_driver_service_stop)
|
||||
timer?.cancel()
|
||||
timer = null
|
||||
// invokeNettyConnResult("司机端服务停止!")
|
||||
@@ -268,7 +268,7 @@ class MoGoAutopilotControlProvider :
|
||||
}.onFailure { throwable ->
|
||||
if (DebugConfig.isDebug()) {
|
||||
// ToastUtils.showLong("AutoPilot出现异常,请立即处理!")
|
||||
// ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_autopilot_exception)
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_autopilot_exception)
|
||||
}
|
||||
throwable.printStackTrace()
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ class MoGoAdasMsgConnectStatusListenerImpl :
|
||||
|
||||
private fun connectToast(reason: Int) {
|
||||
if (CallerIpcConnectStateToastManager.isToast) {
|
||||
// ToastUtils.showShort(reason)
|
||||
ToastUtils.showShort(reason)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -520,7 +520,7 @@ class TeleMsgHandler : IMsgHandler {
|
||||
}
|
||||
TelematicConstant.PASSENGER_APP_REBOOT -> {
|
||||
// ToastUtils.showLong("乘客屏已收到重启命令")
|
||||
// ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_received_restart_command)
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_received_restart_command)
|
||||
}
|
||||
else -> {
|
||||
}
|
||||
@@ -553,7 +553,7 @@ class TeleMsgHandler : IMsgHandler {
|
||||
}
|
||||
// AdasManager.getInstance().startDispatchHandler()
|
||||
// ToastUtils.showShort("连接司机屏成功!")
|
||||
// ToastUtils.showShort(R.string.module_mogo_core_function_datacenter_passenger_link_driver_success)
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_datacenter_passenger_link_driver_success)
|
||||
invokeReqStatusLog(mapOf("dpConnectStatus" to true))
|
||||
val byteArray = byteArrayOf(0)
|
||||
NSDNettyManager.getInstance().sendMogoProtocolMsgToServer(
|
||||
@@ -571,7 +571,7 @@ class TeleMsgHandler : IMsgHandler {
|
||||
AppConfigInfo.plateNumber = ""
|
||||
AppConfigInfo.iPCMacAddress = ""
|
||||
// ToastUtils.showLong("断开和司机屏的连接!")
|
||||
// ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_disconnect_driver)
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_disconnect_driver)
|
||||
invokeReqStatusLog(mapOf("dpConnectStatus" to false))
|
||||
AdasManager.getInstance().stopDispatchHandler()
|
||||
}
|
||||
@@ -580,7 +580,7 @@ class TeleMsgHandler : IMsgHandler {
|
||||
ConnectState.STATUS_CONNECT_ERROR -> {
|
||||
AppConfigInfo.plateNumber = ""
|
||||
// ToastUtils.showLong("和司机端连接异常!")
|
||||
// ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_connect_driver_error)
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_connect_driver_error)
|
||||
invokeReqStatusLog(mapOf("dpConnectErrorMsg" to "$content"))
|
||||
AdasManager.getInstance().stopDispatchHandler()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user