This commit is contained in:
sky_min 2025-12-13 11:53:49 +08:00
parent e9f59c223f
commit 31e49d218e

View File

@ -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) {