fix: 退出登录后需要传storageNonce清理推送绑定信息
This commit is contained in:
parent
829e06a3dd
commit
458ad33147
@ -123,14 +123,9 @@ class MineSetLogic extends BaseGetXController {
|
||||
|
||||
//退出登录请求
|
||||
Future<void> userLogoutRequest() async {
|
||||
String getPushDeviceID = '';
|
||||
await Storage.getString(pushDeviceID).then((String? value) {
|
||||
if (value != null && value.isNotEmpty) {
|
||||
getPushDeviceID = value;
|
||||
}
|
||||
});
|
||||
final String? deviceID = await Storage.getString(appDeviceID);
|
||||
final LoginEntity entity =
|
||||
await ApiRepository.to.userLogout(storageNonce: getPushDeviceID);
|
||||
await ApiRepository.to.userLogout(storageNonce: deviceID ?? '');
|
||||
final String getMobile = (await Storage.getMobile())!;
|
||||
if (entity.errorCode!.codeIsSuccessful) {
|
||||
ApmHelper.instance.logout();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user