diff --git a/ios/Classes/MopPlugin.m b/ios/Classes/MopPlugin.m index 5b1fb92..5131712 100644 --- a/ios/Classes/MopPlugin.m +++ b/ios/Classes/MopPlugin.m @@ -150,9 +150,9 @@ static MopPlugin *_instance; [PhizLanguageData sharedInstance].languageCode = cLang; } else if ([@"getMiniShareInfo" isEqualToString:call.method]) { - NSString *appId = call.arguments[@"appId"]; +// NSString *appId = call.arguments[@"appId"]; FlutterMethodChannel *channel = [[MopPlugin instance] shareMethodChannel]; - [channel invokeMethod:@"extensionApi:forwardApplet" arguments:@{@"appletInfo":contentInfo} result:^(id _Nullable result2) { + [channel invokeMethod:@"extensionApi:forwardApplet" arguments:@{@"appletInfo":call.arguments} result:^(id _Nullable result2) { if([result2 isKindOfClass:[FlutterError class]]|| [result2 isKindOfClass:[FlutterMethodNotImplemented class] ]) { result(nil); diff --git a/lib/mop.dart b/lib/mop.dart index f45884f..371ee94 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -1325,7 +1325,7 @@ class Mop { } ///获取分享信息 - Future getMiniShareInfo(String appId) async { - return await _channel.invokeMethod("getMiniShareInfo", {"appId": appId}); + Future getMiniShareInfo(Map info) async { + return await _channel.invokeMethod("getMiniShareInfo", {"info": info}); } }