fix:调整开锁出现数据不存在的问题
This commit is contained in:
parent
e1943d26d9
commit
34ca2a3f75
@ -497,18 +497,15 @@ class TalkViewLogic extends BaseGetXController {
|
||||
final lockPeerId = StartChartManage().lockPeerId;
|
||||
final lockListPeerId = StartChartManage().lockListPeerId;
|
||||
int lockId = lockDetailState.keyInfos.value.lockId ?? 0;
|
||||
if (lockListPeerId.length == 0) {
|
||||
// 如果锁列表没有获取到peerId,代表只有一个锁,直接使用锁详情的lockId
|
||||
lockId = lockDetailState.keyInfos.value.lockId ?? 0;
|
||||
} else {
|
||||
// 如果锁列表获取到peerId,代表有多个锁,使用锁列表的peerId
|
||||
// 从列表中遍历出对应的peerId
|
||||
lockListPeerId.forEach((element) {
|
||||
if (element.network?.peerId == lockPeerId) {
|
||||
lockId = element.lockId ?? 0;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 如果锁列表获取到peerId,代表有多个锁,使用锁列表的peerId
|
||||
// 从列表中遍历出对应的peerId
|
||||
lockListPeerId.forEach((element) {
|
||||
if (element.network?.peerId == lockPeerId) {
|
||||
lockId = element.lockId ?? 0;
|
||||
}
|
||||
});
|
||||
|
||||
final LockSetInfoEntity lockSetInfoEntity =
|
||||
await ApiRepository.to.getLockSettingInfoData(
|
||||
lockId: lockId.toString(),
|
||||
@ -608,6 +605,7 @@ class TalkViewLogic extends BaseGetXController {
|
||||
}
|
||||
return processedList;
|
||||
}
|
||||
|
||||
//test测试降噪算法
|
||||
// List<int> preprocessAudio(List<int> pcmList) {
|
||||
// final List<int> processedList = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user