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

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

View File

@ -497,10 +497,7 @@ 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
lockId = lockDetailState.keyInfos.value.lockId ?? 0;
} else {
// peerId使peerId // peerId使peerId
// peerId // peerId
lockListPeerId.forEach((element) { lockListPeerId.forEach((element) {
@ -508,7 +505,7 @@ class TalkViewLogic extends BaseGetXController {
lockId = element.lockId ?? 0; 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 = [];