diff --git a/doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m b/doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m index 95be9b1d..6fa6be20 100644 --- a/doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m +++ b/doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m @@ -74,8 +74,8 @@ - (void)getItem:(NSDictionary *)argument withPromise:(DoricPromise *)promise { NSString *zone = argument[@"zone"]; NSString *key = argument[@"key"]; YYDiskCache *diskCache = [self getDiskCache:zone]; - [diskCache objectForKey:key withBlock:^(NSString *key, NSString *value) { - [promise resolve:value]; + [diskCache objectForKey:key withBlock:^(NSString *_Nonnull key, id _Nullable object) { + [promise resolve:object]; }]; }