[6.0.0] 1、拉取下一个任务逻辑修改
This commit is contained in:
@@ -345,11 +345,10 @@ class TaxiUnmannedViewModel : BaseViewModel<UnmannedState, UnmannedIntent>(){
|
||||
if (result.taskType <= TaskTypeEnum.ToOrderStartTask.code
|
||||
&& result.currentStatus == TaskStatusEnum.GetTask.code){//自动去启动自驾
|
||||
if (result.order != null && result.order!!.orderStatus < TaxiOrderStatusEnum.ArriveAtStart.code){
|
||||
d(TAG, "queryCurrentTaskOnce1 = ArriveAtStart not to autoStartDriving" )
|
||||
d(TAG, "queryCurrentTaskOnce1 = autoStartDriving" )
|
||||
TaxiModel.autoStartDriving()
|
||||
return
|
||||
}
|
||||
d(TAG, "queryCurrentTaskOnce1 = autoStartDriving" )
|
||||
TaxiModel.autoStartDriving()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -434,9 +433,7 @@ class TaxiUnmannedViewModel : BaseViewModel<UnmannedState, UnmannedIntent>(){
|
||||
|
||||
private fun startPrepareTask30S(siteId: Long) {
|
||||
UiThreadHandler.postDelayed({
|
||||
if (isLogin() && isOpeningOrderStatus()){
|
||||
pullTask(siteId)
|
||||
}
|
||||
pullTask(siteId)
|
||||
}, TaxiUnmannedConst.TIMER_PREPARE_TASK_INTERVAL)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user