From 128d81ae0b47ba1c55958316c9741a9d71cb0167 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Thu, 22 Dec 2022 14:11:16 +0800 Subject: [PATCH] =?UTF-8?q?fix=20api=E8=BF=94=E5=9B=9Enil=20=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/MopPlugin.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Classes/MopPlugin.m b/ios/Classes/MopPlugin.m index f1821b5..29e640e 100644 --- a/ios/Classes/MopPlugin.m +++ b/ios/Classes/MopPlugin.m @@ -93,7 +93,7 @@ static MopPlugin *_instance; MOPBaseApi* api = [MOPApiConverter apiWithRequest: request]; if (api) { [api setupApiWithSuccess:^(NSDictionary * _Nonnull data) { - result(@{@"retMsg":@"ok",@"success":@(YES),@"data": data}); + result(@{@"retMsg":@"ok",@"success":@(YES),@"data": data ? : @{}}); } failure:^(id _Nullable error) { if ([error isKindOfClass:[NSDictionary class]]) { NSDictionary* dict = (NSDictionary*)error;