[5.2.8]
[shuttle_p] [网络接口失败添加错误处理]
This commit is contained in:
@@ -77,9 +77,9 @@ object TicketModel : StateChangeListener {
|
||||
}
|
||||
}
|
||||
|
||||
override fun onError() {
|
||||
super.onError()
|
||||
ScannerChainLogManager.writeChainLog(TAG +"onError","接口请求错误orderNo:${orderNo}__uid:${uid}")
|
||||
override fun onError(message: String) {
|
||||
ScannerChainLogManager.writeChainLog(TAG +"onError","/och-vehicle/api/scanner/device/writeOff接口请求错误orderNo:${orderNo}__uid:${uid}__reaseon:${message}")
|
||||
sendMessage2Driver("网络错误")
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
@@ -106,7 +106,7 @@ object PassengerServiceManager {
|
||||
ticketInfo
|
||||
)
|
||||
.transformTry()
|
||||
.subscribe(OchCommonSubscribeImpl(context, callback, "queryDriverOperationStatus"))
|
||||
.subscribe(OchCommonSubscribeImpl(context, callback, "writeOff"))
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user