diff --git a/lib/main.dart b/lib/main.dart index 60422d4..bb225e8 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -57,7 +57,7 @@ void main() async { // useEncrypt: true ); // 设置当前是否为测试环境 - bool isDebug = false; + bool isDebug = true; AppConfig.setDebug(isDebug); //持久化存储 diff --git a/lib/pages/live/live_stream/live_page.dart b/lib/pages/live/live_stream/live_page.dart index b637dfa..e761d20 100644 --- a/lib/pages/live/live_stream/live_page.dart +++ b/lib/pages/live/live_stream/live_page.dart @@ -1033,9 +1033,17 @@ class _LivePageState extends State with WidgetsBindingObserver { _stopLive() async { _livePusher?.stopPush(); if (_streamInfoModel != null) { - await TencentImPlugin.quitGroup(groupId: _streamInfoModel.groupId); + try { + await TencentImPlugin.quitGroup(groupId: _streamInfoModel.groupId); + } catch (e) { + print(e); + } TencentImPlugin.removeListener(parseMessage); - await TencentImPlugin.logout(); + try { + await TencentImPlugin.logout(); + } catch (e) { + print(e); + } } if (_isStream) await HttpManager.post(LiveAPI.exitLive, {