phiz_2.42.13.4
Sean 2024-01-17 18:07:27 +08:00
parent a300a7b5b2
commit 07ccc4ed4f
2 changed files with 18 additions and 0 deletions

View File

@ -149,6 +149,19 @@ static MopPlugin *_instance;
[PhizLanguageData sharedInstance].countryCode = cCode; [PhizLanguageData sharedInstance].countryCode = cCode;
[PhizLanguageData sharedInstance].languageCode = cLang; [PhizLanguageData sharedInstance].languageCode = cLang;
} }
else if ([@"getMiniShareInfo" isEqualToString:call.method]) {
NSString *appId = call.arguments[@"appId"];
FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel];
[channel invokeMethod:@"extensionApi:forwardApplet" arguments:@{@"appletInfo":contentInfo} result:^(id _Nullable result2) {
if([result2 isKindOfClass:[FlutterError class]]|| [result2 isKindOfClass:[FlutterMethodNotImplemented class] ])
{
result(nil);
}else
{
result(result);
}
}];
}
else { else {
MOPApiRequest* request = [[MOPApiRequest alloc] init]; MOPApiRequest* request = [[MOPApiRequest alloc] init];
request.command = call.method; request.command = call.method;

View File

@ -1323,4 +1323,9 @@ class Mop {
void moveCurrentAppletToFront() async { void moveCurrentAppletToFront() async {
return await _channel.invokeMethod("moveCurrentAppletToFront"); return await _channel.invokeMethod("moveCurrentAppletToFront");
} }
///
Future<dynamic> getMiniShareInfo(String appId) async {
return await _channel.invokeMethod("getMiniShareInfo", {"appId": appId});
}
} }