[6.2.0]
[taxiun] [状态流转异常]
This commit is contained in:
@@ -732,9 +732,16 @@ object TaxiTaskModel {
|
||||
queryOrderByOrderNo(mCurrentTaskWithOrder!!.order!!.orderNo)
|
||||
return
|
||||
}
|
||||
|
||||
var orderStatusChange = false
|
||||
result?.order?.orderStatus?.let {newOrderStatus ->
|
||||
if (newOrderStatus!=mCurrentTaskWithOrder?.order?.orderStatus) {
|
||||
// 订单状态发生改变
|
||||
orderStatusChange = true
|
||||
}
|
||||
}
|
||||
//订单或者伪任务更新, 都去刷新下界面
|
||||
if (mCurrentTaskWithOrder == null
|
||||
|| orderStatusChange
|
||||
|| (result != null &&mCurrentTaskWithOrder!!.writeVersion < result.writeVersion)) {
|
||||
d(TAG, "queryCurrentTaskOnce: 更新本地数据")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user