优化补充

This commit is contained in:
Daisy 2024-04-03 13:53:12 +08:00
parent 066ddf9f71
commit 2918746fda

View File

@ -53,7 +53,9 @@ class MineSetLogic extends BaseGetXController {
Future<void> userLogoutRequest() async {
var getPushDeviceID = '';
await Storage.getString(pushDeviceID).then((value) {
getPushDeviceID = value!;
if (value != null && value.isNotEmpty) {
getPushDeviceID = value;
}
});
LoginEntity entity =
await ApiRepository.to.userLogout(deviceld: getPushDeviceID);