diff --git a/lib/controller/message/call_controller.dart b/lib/controller/message/call_controller.dart index b1e1481..155aead 100644 --- a/lib/controller/message/call_controller.dart +++ b/lib/controller/message/call_controller.dart @@ -211,7 +211,7 @@ class CallController extends GetxController { } // 验证 type 参数 - if (type != 1 && type != 2) { + if (type != 2 && type != 3) { SmartDialog.showToast('类型参数错误:1为音频,2为视频'); return null; } @@ -270,7 +270,7 @@ class CallController extends GetxController { ); // 发起通话前,先创建一对一 RTC 频道 - final type = callType == CallType.video ? 2 : 1; // 1为音频,2为视频 + final type = callType == CallType.video ? 3 : 2; // 1为音频,2为视频 final channelData = await createOneOnOneRtcChannel(type: type); _callUid = channelData?.uid; _callChannelId = channelData?.channelId;