fix:注释“锁已经被重置”的提示框
This commit is contained in:
parent
329989b2ba
commit
e5d11f6ee8
@ -426,25 +426,26 @@ class LockDetailLogic extends BaseGetXController {
|
||||
AppLog.log('command:${command}');
|
||||
|
||||
showBlueConnetctToastTimer(
|
||||
outTimer: 20,
|
||||
action: () async {
|
||||
final String getMobile = (await Storage.getMobile())!;
|
||||
ApmHelper.instance.trackEvent('open_lock', {
|
||||
'lock_name': state.keyInfos.value.lockName!,
|
||||
'account':
|
||||
getMobile.isNotEmpty ? getMobile : (await Storage.getEmail())!,
|
||||
'date': DateTool().getNowDateWithType(1),
|
||||
'open_lock_result': '超时',
|
||||
});
|
||||
|
||||
resetOpenDoorState();
|
||||
blueManageDisconnect();
|
||||
BuglyTool.uploadException(
|
||||
message: '开门超时处理-开锁失败',
|
||||
detail: '开门超时,断开连接,开锁失败--OpenLockCommand:$command',
|
||||
upload: true);
|
||||
outTimer: 20,
|
||||
action: () async {
|
||||
final String getMobile = (await Storage.getMobile())!;
|
||||
ApmHelper.instance.trackEvent('open_lock', {
|
||||
'lock_name': state.keyInfos.value.lockName!,
|
||||
'account':
|
||||
getMobile.isNotEmpty ? getMobile : (await Storage.getEmail())!,
|
||||
'date': DateTool().getNowDateWithType(1),
|
||||
'open_lock_result': '超时',
|
||||
});
|
||||
|
||||
resetOpenDoorState();
|
||||
blueManageDisconnect();
|
||||
BuglyTool.uploadException(
|
||||
message: '开门超时处理-开锁失败',
|
||||
detail: '开门超时,断开连接,开锁失败--OpenLockCommand:$command',
|
||||
upload: true);
|
||||
},
|
||||
);
|
||||
|
||||
BlueManage()
|
||||
.blueSendData(state.keyInfos.value.bluetooth!.bluetoothDeviceName!,
|
||||
(BluetoothConnectionState deviceConnectionState) async {
|
||||
@ -481,9 +482,9 @@ class LockDetailLogic extends BaseGetXController {
|
||||
'open_lock_result': '断开连接',
|
||||
});
|
||||
|
||||
if (state.ifCurrentScreen.value == true) {
|
||||
showBlueConnetctToast();
|
||||
}
|
||||
// if (state.ifCurrentScreen.value == true) {
|
||||
// showBlueConnetctToast();
|
||||
// }
|
||||
resetOpenDoorState();
|
||||
}
|
||||
});
|
||||
@ -658,7 +659,9 @@ class LockDetailLogic extends BaseGetXController {
|
||||
// 远程开锁
|
||||
Future<void> remoteOpenLock() async {
|
||||
final LoginEntity entity = await ApiRepository.to.remoteOpenLock(
|
||||
lockId: state.keyInfos.value.lockId.toString(), timeOut: 60);
|
||||
lockId: state.keyInfos.value.lockId.toString(),
|
||||
timeOut: 60,
|
||||
);
|
||||
if (entity.errorCode!.codeIsSuccessful) {
|
||||
showToast('已开锁'.tr);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user