|
|
@@ -15,6 +15,7 @@ import '../data/bean/location_info.dart';
|
|
|
import '../data/repositories/account_repository.dart';
|
|
|
import '../data/repositories/contact_repository.dart';
|
|
|
import '../data/repositories/message_repository.dart';
|
|
|
+import '../dialog/account_replace_dialog.dart';
|
|
|
import 'location_message.dart';
|
|
|
|
|
|
typedef OnLocationChangeListener = void Function(List<LocationInfo> data);
|
|
|
@@ -133,6 +134,10 @@ class AtmobLocationClient {
|
|
|
case SocketConstants.refreshMember:
|
|
|
AccountRepository.getInstance().refreshMemberStatus();
|
|
|
break;
|
|
|
+ case SocketConstants.refreshUserLogin:
|
|
|
+ AccountReplaceDialog.show();
|
|
|
+ AccountRepository.getInstance().logout();
|
|
|
+ break;
|
|
|
}
|
|
|
return SocketConstants.receiveFriendBatchLocation == message.cmd;
|
|
|
})
|