fix:调整开锁出现数据不存在的问题

This commit is contained in:
liyi 2025-02-21 10:21:58 +08:00
parent e1943d26d9
commit 34ca2a3f75

View File

@ -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 = [];