fix: 退出登录后需要传storageNonce清理推送绑定信息

This commit is contained in:
Liuyf 2025-03-07 15:46:31 +08:00
parent 829e06a3dd
commit 458ad33147

View File

@ -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();