Merge branch 'master' of https://gitee.com/starlock-cn/app-starlock
This commit is contained in:
commit
299f70cedb
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user