bug
This commit is contained in:
parent
e9f59c223f
commit
31e49d218e
@ -723,16 +723,14 @@ class LockDetailLogic extends BaseGetXController {
|
||||
return;
|
||||
}
|
||||
|
||||
// 判断是否为WiFi锁
|
||||
// WiFi锁
|
||||
final network = currentKeyInfo.network;
|
||||
if (network != null && (network.peerId != null && network.peerId!.isNotEmpty)){
|
||||
showToast('wifi锁进行蓝牙透传开锁'.tr);
|
||||
// 发送蓝牙透传开锁指令
|
||||
await _sendUnlockViaBluetooth();
|
||||
}
|
||||
// 判断是否为网关锁
|
||||
// 网关锁
|
||||
if (state.keyInfos.value.hasGateway == 1) {
|
||||
showToast('网关锁进行远程开锁api开锁'.tr);
|
||||
// 发送远程开锁API
|
||||
final LoginEntity entity = await ApiRepository.to.remoteOpenLock(lockId: lockId.toString(), timeOut: 60);
|
||||
if (entity.errorCode!.codeIsSuccessful) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user