jx2
parent
4daa04ad28
commit
031f9a2b20
|
@ -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);
|
||||||
|
|
|
@ -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});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue