fix:修复极光推送 ios 报错的问题
This commit is contained in:
parent
2f248c74b2
commit
f23e2390c5
BIN
ios/.DS_Store
vendored
BIN
ios/.DS_Store
vendored
Binary file not shown.
@ -36,7 +36,7 @@ class LockMainLogic extends BaseGetXController {
|
|||||||
isUnShowLoading: isUnShowLoading,
|
isUnShowLoading: isUnShowLoading,
|
||||||
);
|
);
|
||||||
if (entity.errorCode!.codeIsSuccessful) {
|
if (entity.errorCode!.codeIsSuccessful) {
|
||||||
await loadMainDataLogic(entity.data!);
|
await loadMainDataLogic(entity.data!);
|
||||||
}
|
}
|
||||||
return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
@ -149,7 +149,8 @@ class LockMainLogic extends BaseGetXController {
|
|||||||
final LockListInfoEntity entity = await ApiRepository.to.getStarLockInfo(
|
final LockListInfoEntity entity = await ApiRepository.to.getStarLockInfo(
|
||||||
keyId: keyId,
|
keyId: keyId,
|
||||||
);
|
);
|
||||||
if (entity.errorCode!.codeIsSuccessful) {
|
if (entity.errorCode!.codeIsSuccessful &&
|
||||||
|
(entity.data?.groupList ?? <GroupList>[]).isNotEmpty) {
|
||||||
state.lockListInfoGroupEntity.value.groupList ??= <GroupList>[];
|
state.lockListInfoGroupEntity.value.groupList ??= <GroupList>[];
|
||||||
final GroupList list = entity.data!.groupList!.first;
|
final GroupList list = entity.data!.groupList!.first;
|
||||||
final LockListInfoItemEntity listItem =
|
final LockListInfoItemEntity listItem =
|
||||||
|
|||||||
@ -74,15 +74,13 @@ class MessageManagement {
|
|||||||
case MessageConstant.lockSetChange:
|
case MessageConstant.lockSetChange:
|
||||||
final int keyId = data['keyId'];
|
final int keyId = data['keyId'];
|
||||||
final int lockId = data['lockId'];
|
final int lockId = data['lockId'];
|
||||||
final Map<String, dynamic> extra = data['updateFieldList'];
|
// 暂时只用刷新
|
||||||
if (extra['appUnlockOnline'] != null) {
|
// final Map<Object?, Object?> extra = data['updateFieldList'];
|
||||||
final String appUnlockOnline = extra['appUnlockOnline'];
|
// if (extra['appUnlockOnline'] != null) {
|
||||||
eventBus.fire(
|
// final String appUnlockOnline = extra['appUnlockOnline']!.toString();
|
||||||
LockSetChangeSetRefreshLockDetailWithType(1, appUnlockOnline));
|
// }
|
||||||
eventBus.fire(RefreshLockInfoDataEvent(keyId: keyId, lockId: lockId));
|
eventBus.fire(RefreshLockInfoDataEvent(keyId: keyId, lockId: lockId));
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw Exception('无法识别eventNo 参数:$eventNo');
|
throw Exception('无法识别eventNo 参数:$eventNo');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user