|
|
@@ -7,8 +7,6 @@ import com.grkj.iscs.extentions.removeLeadingZeros
|
|
|
import com.grkj.iscs.extentions.toHexStrings
|
|
|
import com.grkj.iscs.modbus.ModBusController
|
|
|
import com.grkj.iscs.model.DeviceConst.DEVICE_TYPE_CARD
|
|
|
-import com.grkj.iscs.model.DeviceConst.DEVICE_TYPE_KEY
|
|
|
-import com.grkj.iscs.model.DeviceConst.DEVICE_TYPE_LOCK
|
|
|
import com.grkj.iscs.model.vo.card.CardInfoRespVO
|
|
|
import com.grkj.iscs.util.Executor
|
|
|
import com.grkj.iscs.util.NetApi
|
|
|
@@ -76,40 +74,6 @@ class LoginPresenter : BasePresenter<ILoginView>() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- DEVICE_TYPE_KEY -> {
|
|
|
- // TODO 是否处理工作票
|
|
|
-// Executor.runOnMain {
|
|
|
-// BusinessManager.getTicketStatusBusiness(
|
|
|
-// PresentationManager.keyMac,
|
|
|
-// this
|
|
|
-// ) { b, s ->
|
|
|
-// (mvpView as BaseActivity<*>).handleLoading(b, s)
|
|
|
-// if (!s.isNullOrEmpty() && s.startsWith("工作票完成接收")) {
|
|
|
-// val ticket = s.substring(7)
|
|
|
-// val ticketStatusBean = Gson().fromJson(
|
|
|
-// ticket,
|
|
|
-// WorkTicketStatusBean::class.java
|
|
|
-// )
|
|
|
-// PresentationManager.updateWorkTicket(ticketStatusBean)
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
- }
|
|
|
-
|
|
|
- DEVICE_TYPE_LOCK -> {
|
|
|
- // TODO 是否处理
|
|
|
-// Executor.runOnMain {
|
|
|
-// ModBusController.readLockRfid(
|
|
|
-// dockBean.addr.toInt() - 1,
|
|
|
-// deviceBean.idx
|
|
|
-// ) { res ->
|
|
|
-// val rfid = res.copyOfRange(3, 11).toHexStrings(false)
|
|
|
-// .removeLeadingZeros()
|
|
|
-// PresentationManager.updateLockReturnStatus(rfid)
|
|
|
-// }
|
|
|
-// }
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|