jx2
parent
4daa04ad28
commit
031f9a2b20
|
@ -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);
|
||||
|
|
|
@ -1325,7 +1325,7 @@ class Mop {
|
|||
}
|
||||
|
||||
///获取分享信息
|
||||
Future<dynamic> getMiniShareInfo(String appId) async {
|
||||
return await _channel.invokeMethod("getMiniShareInfo", {"appId": appId});
|
||||
Future<dynamic> getMiniShareInfo(Map<String, dynamic> info) async {
|
||||
return await _channel.invokeMethod("getMiniShareInfo", {"info": info});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue