|
|
@@ -516,6 +516,13 @@ object BleBusinessManager {
|
|
|
getTicketStatusWithRetry(it, isNeedLoading)
|
|
|
}
|
|
|
} else {
|
|
|
+ //如果连接在待发列表则断开连接,重新使用归还队列连接之后检查
|
|
|
+ if (BleSendDispatcher.isConnected(mac)) {
|
|
|
+ BleSendDispatcher.scheduleDisconnect(mac)
|
|
|
+ BleReturnDispatcher.submit(mac) {
|
|
|
+ getTicketStatusBusiness(mac, isNeedLoading)
|
|
|
+ }
|
|
|
+ }
|
|
|
if (isNeedLoading) LoadingEvent.sendLoadingEvent()
|
|
|
}
|
|
|
}
|
|
|
@@ -720,7 +727,6 @@ object BleBusinessManager {
|
|
|
|
|
|
/**
|
|
|
* 处理钥匙归还
|
|
|
- * todo 自定义作业流程需要修改
|
|
|
*/
|
|
|
private fun handleKeyReturn(
|
|
|
bleDevice: BleDevice,
|