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 lockPeerId = StartChartManage().lockPeerId;
final lockListPeerId = StartChartManage().lockListPeerId; final lockListPeerId = StartChartManage().lockListPeerId;
int lockId = lockDetailState.keyInfos.value.lockId ?? 0; int lockId = lockDetailState.keyInfos.value.lockId ?? 0;
if (lockListPeerId.length == 0) {
// peerId使lockId // peerId使peerId
lockId = lockDetailState.keyInfos.value.lockId ?? 0; // peerId
} else { lockListPeerId.forEach((element) {
// peerId使peerId if (element.network?.peerId == lockPeerId) {
// peerId lockId = element.lockId ?? 0;
lockListPeerId.forEach((element) { }
if (element.network?.peerId == lockPeerId) { });
lockId = element.lockId ?? 0;
}
});
}
final LockSetInfoEntity lockSetInfoEntity = final LockSetInfoEntity lockSetInfoEntity =
await ApiRepository.to.getLockSettingInfoData( await ApiRepository.to.getLockSettingInfoData(
lockId: lockId.toString(), lockId: lockId.toString(),
@ -608,6 +605,7 @@ class TalkViewLogic extends BaseGetXController {
} }
return processedList; return processedList;
} }
//test测试降噪算法 //test测试降噪算法
// List<int> preprocessAudio(List<int> pcmList) { // List<int> preprocessAudio(List<int> pcmList) {
// final List<int> processedList = []; // final List<int> processedList = [];