Merge branch 'develop_liyi' into 'canary_release'

feat:合并可是对讲

See merge request StarlockTeam/app-starlock!11
This commit is contained in:
李仪 2025-04-02 02:00:40 +00:00
commit 9be1f93e0e

View File

@ -275,12 +275,12 @@ class TalkViewLogic extends BaseGetXController {
Timer.periodic(const Duration(seconds: 1), (Timer t) { Timer.periodic(const Duration(seconds: 1), (Timer t) {
if (state.listData.value.length > 0) { if (state.listData.value.length > 0) {
state.oneMinuteTime.value++; state.oneMinuteTime.value++;
if (state.oneMinuteTime.value >= 60) { // if (state.oneMinuteTime.value >= 60) {
t.cancel(); // // t.cancel(); //
state.oneMinuteTime.value = 0; // state.oneMinuteTime.value = 0;
// // //
udpHangUpAction(); // // udpHangUpAction();
} // }
} }
}); });
break; break;
@ -492,7 +492,9 @@ class TalkViewLogic extends BaseGetXController {
stopProcessingAudio(); stopProcessingAudio();
// //
_imageCache.clear(); _imageCache.clear();
state.oneMinuteTimeTimer?.cancel(); //
state.oneMinuteTimeTimer = null; //
state.oneMinuteTime.value = 0;
super.onClose(); super.onClose();
} }