phiz_2.42.13.4
Sean 2024-01-17 18:22:24 +08:00
parent 4daa04ad28
commit 031f9a2b20
2 changed files with 4 additions and 4 deletions

View File

@ -150,9 +150,9 @@ static MopPlugin *_instance;
[PhizLanguageData sharedInstance].languageCode = cLang; [PhizLanguageData sharedInstance].languageCode = cLang;
} }
else if ([@"getMiniShareInfo" isEqualToString:call.method]) { else if ([@"getMiniShareInfo" isEqualToString:call.method]) {
NSString *appId = call.arguments[@"appId"]; // NSString *appId = call.arguments[@"appId"];
FlutterMethodChannel *channel = [[MopPlugin instance] shareMethodChannel]; 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] ]) if([result2 isKindOfClass:[FlutterError class]]|| [result2 isKindOfClass:[FlutterMethodNotImplemented class] ])
{ {
result(nil); result(nil);

View File

@ -1325,7 +1325,7 @@ class Mop {
} }
/// ///
Future<dynamic> getMiniShareInfo(String appId) async { Future<dynamic> getMiniShareInfo(Map<String, dynamic> info) async {
return await _channel.invokeMethod("getMiniShareInfo", {"appId": appId}); return await _channel.invokeMethod("getMiniShareInfo", {"info": info});
} }
} }