[fix]
[taxi]
[选择标定点 不出语言]
This commit is contained in:
yangyakun
2025-01-09 11:55:26 +08:00
parent 5523f4cbf0
commit b5f42f0ce3
3 changed files with 6 additions and 4 deletions

View File

@@ -1194,7 +1194,7 @@ object TaxiTaskModel {
return
}
}
setCalibrationSite(data.data)
setCalibrationSite(data.data,true)
}
override fun onFail(code: Int, msg: String) {
@@ -1209,7 +1209,10 @@ object TaxiTaskModel {
})
}
fun setCalibrationSite(data: StartServiceRespBean.Result?) {
fun setCalibrationSite(data: StartServiceRespBean.Result?, showVoice: Boolean) {
if(showVoice) {
VoiceNotice.showNotice("开始接单啦")
}
BizLoopManager.runInMainThread{
mDriveToNearestStationTask = data
mLastArrivedSiteId = -1L //开始标定站点任务时, 到达站点标志位需复位

View File

@@ -466,7 +466,6 @@ class ItineraryCurrentModel : BaseViewModel<UnmannedState, TaskUiIntent>(),
driveToNearestStationTask: StartServiceRespBean.Result?,
currentTaskWithOrder: QueryCurrentTaskRespBean.Result?
) {
VoiceNotice.showNotice("开始接单啦")
updateDriveToNearestStationTaskUI(driveToNearestStationTask)
}

View File

@@ -73,7 +73,7 @@ class SwtichSiteModel : ViewModel() {
}
fun selectNewSite(checkStationBean: StartStationBean) {
TaxiTaskModel.setCalibrationSite( checkStationBean.toResult())
TaxiTaskModel.setCalibrationSite(checkStationBean.toResult(), false)
this.viewCallback?.showCalibrationSite()
}