This commit is contained in:
魏少阳 2024-04-03 13:42:32 +08:00
commit 299f70cedb

View File

@ -51,10 +51,12 @@ class MineSetLogic extends BaseGetXController {
//退
Future<void> userLogoutRequest() async {
var getPushDeviceID = await Storage.getString(pushDeviceID);
var getPushDeviceID = '';
await Storage.getString(pushDeviceID).then((value) {
getPushDeviceID = value!;
});
LoginEntity entity =
await ApiRepository.to.userLogout(deviceld: getPushDeviceID!);
await ApiRepository.to.userLogout(deviceld: getPushDeviceID);
if (entity.errorCode!.codeIsSuccessful) {
UdpHelp().closeUDP();
logOut();