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;