Browse Source

退出修改;

master
ZHR007 3 months ago
parent
commit
814a40a358
2 changed files with 9 additions and 2 deletions
  1. 4
      lib/controller/discover/room_controller.dart
  2. 7
      lib/controller/setting/setting_controller.dart

4
lib/controller/discover/room_controller.dart

@ -330,6 +330,10 @@ class RoomController extends GetxController with WidgetsBindingObserver {
}
Future<void> leaveChannel() async {
if(!isLive.value){
//
return;
}
// RTC
if (currentRole == CurrentRole.broadcaster) {
try {

7
lib/controller/setting/setting_controller.dart

@ -77,8 +77,11 @@ class SettingController extends GetxController {
final conversationController = Get.find<ConversationController>();
conversationController.clearConversations();
}
//
storage.erase();
// App清除本地存储
// storage.erase();
storage.remove('userId');
storage.remove('token');
// storage.write('hasAgreedUserAgreement', true);
//
GlobalData().logout();
}

Loading…
Cancel
Save