Merge branch 'develop_liyi' into canary_release
This commit is contained in:
commit
c3dfe8a366
@ -123,14 +123,9 @@ class MineSetLogic extends BaseGetXController {
|
|||||||
|
|
||||||
//退出登录请求
|
//退出登录请求
|
||||||
Future<void> userLogoutRequest() async {
|
Future<void> userLogoutRequest() async {
|
||||||
String getPushDeviceID = '';
|
final String? deviceID = await Storage.getString(appDeviceID);
|
||||||
await Storage.getString(pushDeviceID).then((String? value) {
|
|
||||||
if (value != null && value.isNotEmpty) {
|
|
||||||
getPushDeviceID = value;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
final LoginEntity entity =
|
final LoginEntity entity =
|
||||||
await ApiRepository.to.userLogout(storageNonce: getPushDeviceID);
|
await ApiRepository.to.userLogout(storageNonce: deviceID ?? '');
|
||||||
final String getMobile = (await Storage.getMobile())!;
|
final String getMobile = (await Storage.getMobile())!;
|
||||||
if (entity.errorCode!.codeIsSuccessful) {
|
if (entity.errorCode!.codeIsSuccessful) {
|
||||||
ApmHelper.instance.logout();
|
ApmHelper.instance.logout();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user