[8.2.8][i18n] 所有吐司 中文抽取
This commit is contained in:
@@ -15,6 +15,7 @@ import com.mogo.eagle.core.data.map.MogoLatLng
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoPlanningRottingListener
|
||||
import com.mogo.eagle.core.function.api.hmi.autopilot.IMoGoCheckAutoPilotBtnListener
|
||||
import com.mogo.eagle.core.function.biz.R
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerPlanningRottingListenerManager
|
||||
@@ -24,6 +25,7 @@ import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_BIZ
|
||||
import com.mogo.eagle.core.utilcode.util.CoordinateUtils
|
||||
import com.mogo.eagle.core.utilcode.util.StringUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils
|
||||
import com.mogo.eagle.function.biz.dispatch.network.DispatchServiceModel.Companion.DISPATCH_COMPLETED
|
||||
import com.mogo.eagle.function.biz.dispatch.network.DispatchServiceModel.Companion.DISPATCH_RESULT_AFFIRM
|
||||
@@ -162,42 +164,50 @@ class DispatchAutoPilotManager private constructor() :
|
||||
}
|
||||
if(it.trajUrl == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "trajUrl-null")
|
||||
ToastUtils.showShort("trajUrl数据为空")
|
||||
// ToastUtils.showShort("trajUrl数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_traj_url_data_null)
|
||||
return
|
||||
}
|
||||
if(it.trajMd5 == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "trajMd5-null")
|
||||
ToastUtils.showShort("trajMd5数据为空")
|
||||
// ToastUtils.showShort("trajMd5数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_traj_md5_data_null)
|
||||
return
|
||||
}
|
||||
if(it.stopUrl == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "stopUrl-null")
|
||||
ToastUtils.showShort("stopUrl数据为空")
|
||||
// ToastUtils.showShort("stopUrl数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_stop_url_data_null)
|
||||
return
|
||||
}
|
||||
if(it.stopMd5 == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "stopMd5-null")
|
||||
ToastUtils.showShort("stopMd5数据为空")
|
||||
// ToastUtils.showShort("stopMd5数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_stop_md5_data_null)
|
||||
return
|
||||
}
|
||||
if(it.vehicleModel == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "vehicleModel-null")
|
||||
ToastUtils.showShort("vehicleModel数据为空")
|
||||
// ToastUtils.showShort("vehicleModel数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_vehicle_model_data_null)
|
||||
return
|
||||
}
|
||||
if(it.lineName == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "lineName-null")
|
||||
ToastUtils.showShort("lineName数据为空")
|
||||
// ToastUtils.showShort("lineName数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_line_name_data_null)
|
||||
return
|
||||
}
|
||||
if(it.startLocAddress == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "startLocAddress-null")
|
||||
ToastUtils.showShort("startLocAddress数据为空")
|
||||
// ToastUtils.showShort("startLocAddress数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_start_loc_address_data_null)
|
||||
return
|
||||
}
|
||||
if(it.endLocAddress == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "endLocAddress-null")
|
||||
ToastUtils.showShort("endLocAddress数据为空")
|
||||
// ToastUtils.showShort("endLocAddress数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_end_loc_address_data_null)
|
||||
return
|
||||
}
|
||||
val currentAutoPilotLine = AutopilotControlParameters.AutoPilotLine(it.lineId.toLong(),it.lineName,it.trajUrl,it.trajMd5,
|
||||
@@ -227,7 +237,8 @@ class DispatchAutoPilotManager private constructor() :
|
||||
//调用工控机开启自动驾驶
|
||||
startAutoPilot()
|
||||
},onError = { error->
|
||||
ToastUtils.showShort("上报调度失败${error}")
|
||||
// ToastUtils.showShort("上报调度失败${error}")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_reported_dispatch_failure, error)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -244,10 +255,13 @@ class DispatchAutoPilotManager private constructor() :
|
||||
//取消自动驾驶
|
||||
CallerAutoPilotControlManager.cancelAutoPilot()
|
||||
isDispatch = false
|
||||
ToastUtils.showShort("云调度取消确认成功")
|
||||
// ToastUtils.showShort("云调度取消确认成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_cloud_cancel_autopilot_success)
|
||||
CallerLogger.i("$M_BIZ$TAG","stopAffirm 取消自动驾驶")
|
||||
}, onError = {error ->
|
||||
ToastUtils.showShort("停止调度确认失败${error}")
|
||||
// ToastUtils.showShort("停止调度确认失败${error}")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_cloud_cancel_autopilot_error, error)
|
||||
|
||||
}
|
||||
)
|
||||
}
|
||||
@@ -341,11 +355,14 @@ class DispatchAutoPilotManager private constructor() :
|
||||
receiverBean?.let {
|
||||
//调度完成,同步云端,并且吐司提示
|
||||
dispatchServiceModel.dispatchResultUpload(DISPATCH_COMPLETED, it.taskId)
|
||||
ToastUtils.showLong("云调度完成,车辆已到达${it.endLocAddress}")
|
||||
val msg = StringUtils.getString(R.string.module_mogo_core_function_biz_cloud_complete_arrive, it.endLocAddress)
|
||||
// ToastUtils.showLong("云调度完成,车辆已到达${it.endLocAddress}")
|
||||
ToastUtils.showShort(msg)
|
||||
//取消自动驾驶
|
||||
CallerAutoPilotControlManager.cancelAutoPilot()
|
||||
//语音提示到站
|
||||
AIAssist.getInstance(mContext).speakTTSVoice("云调度完成,车辆已到达${it.endLocAddress}")
|
||||
// AIAssist.getInstance(mContext).speakTTSVoice("云调度完成,车辆已到达${it.endLocAddress}")
|
||||
AIAssist.getInstance(mContext).speakTTSVoice(msg)
|
||||
}
|
||||
}else{
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, mapOf("arriveErrorMsg" to "不在到站距离范围内", "ArriveAtStation" to arrivalNotification, "distanceFromSelf" to distanceFromSelf), true)
|
||||
|
||||
@@ -21,6 +21,7 @@ import com.mogo.eagle.core.data.msgbox.MsgBoxType
|
||||
import com.mogo.eagle.core.data.msgbox.V2XMsg
|
||||
import com.mogo.eagle.core.data.v2x.VipMessage
|
||||
import com.mogo.eagle.core.function.api.datacenter.union.IMoGoTrafficLightListener
|
||||
import com.mogo.eagle.core.function.biz.R
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationWGS84ListenerManager
|
||||
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
|
||||
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
|
||||
@@ -259,7 +260,8 @@ class VipCarManager : IMogoOnMessageListener<VipMessage>, IMoGoTrafficLightListe
|
||||
",bearing:$bearing" +
|
||||
",controlTime:$controlTime"
|
||||
,true)
|
||||
ToastUtils.showLong("服务异常,请稍后重试")
|
||||
// ToastUtils.showLong("服务异常,请稍后重试")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_biz_serve_error)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user