fix:增加远程开锁前,和监视前的提示,增加静音提示

This commit is contained in:
liyi 2025-02-19 16:36:39 +08:00
parent 18d4836fde
commit bee794e801
4 changed files with 9 additions and 8 deletions

View File

@ -1128,6 +1128,7 @@
"正在说话...": "Talking now...",
"设备不在线": "The device is not online",
"设备未配网": "The device is not connected to the network",
"已静音": "The sound has been turned off",
"该锁的远程开锁功能未启用": "The remote unlocking function of this lock is not enabled",
"下载完成,请到相册查看": "Download completed, please go to the album to view",
"重置后,该锁的遥控都将被删除哦,确认要重置吗?": "After reset, the remote control of the lock will be deleted. Do you want to reset it?",

View File

@ -1129,6 +1129,7 @@
"正在说话...": "正在说话...",
"设备不在线": "设备不在线",
"设备未配网": "设备未配网",
"已静音": "已静音",
"该锁的远程开锁功能未启用": "该锁的远程开锁功能未启用",
"下载完成,请到相册查看": "下载完成,请到相册查看",
"重置后,该锁的遥控都将被删除哦,确认要重置吗?": "重置后,该锁的遥控都将被删除哦,确认要重置吗?",

View File

@ -1129,6 +1129,7 @@
"正在说话...": "正在说话...",
"设备不在线": "设备不在线",
"设备未配网": "设备未配网",
"已静音": "已静音",
"该锁的远程开锁功能未启用": "该锁的远程开锁功能未启用",
"下载完成,请到相册查看": "下载完成,请到相册查看",
"重置后,该锁的遥控都将被删除哦,确认要重置吗?": "重置后,该锁的遥控都将被删除哦,确认要重置吗?",

View File

@ -509,20 +509,18 @@ class TalkViewLogic extends BaseGetXController {
Future<void> remoteOpenLock() async {
final lockPeerId = StartChartManage().lockPeerId;
final lockListPeerId = StartChartManage().lockListPeerId;
int lockId = 0;
int lockId = lockDetailState.keyInfos.value.lockId ?? 0;
if (lockListPeerId.length == 0) {
// peerId使lockId
lockId = lockDetailState.keyInfos.value.lockId ?? 0;
} else {
// peerId使peerId
// peerId
lockId = lockListPeerId
.firstWhere(
(element) => element.network?.peerId == lockPeerId,
orElse: () => LockListInfoItemEntity(), // null
)
?.lockId ??
0;
lockListPeerId.forEach((element) {
if (element.network?.peerId == lockPeerId) {
lockId = element.lockId ?? 0;
}
});
}
final LockSetInfoEntity lockSetInfoEntity =
await ApiRepository.to.getLockSettingInfoData(