From ca6e0d5c3959baba2710a6728cc82223a0def4ef Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 7 Aug 2020 10:53:07 +0800 Subject: [PATCH] iOS fix compile problem --- doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; }]; }