修复finishRunningApplet接口问题

master
kangxuyao 2022-05-24 11:12:25 +08:00
parent fb010ab623
commit 2e899edb51
4 changed files with 8 additions and 22 deletions

View File

@ -72,16 +72,16 @@ public class AppletManageModule extends BaseApi {
FinAppClient.INSTANCE.getAppletApiManager().closeApplets(); FinAppClient.INSTANCE.getAppletApiManager().closeApplets();
callback.onSuccess(null); callback.onSuccess(null);
} else if (event.equals("finishRunningApplet")) { } else if (event.equals("finishRunningApplet")) {
if (param.containsKey("appId") && param.get("appId") instanceof String) { if (param.containsKey("appletId") && param.get("appletId") instanceof String) {
String appId = (String) param.get("appId"); String appId = (String) param.get("appletId");
FinAppClient.INSTANCE.getAppletApiManager().finishRunningApplet(appId); FinAppClient.INSTANCE.getAppletApiManager().finishRunningApplet(appId);
callback.onSuccess(null); callback.onSuccess(null);
} else { } else {
callback.onFail(null); callback.onFail(null);
} }
} else if (event.equals("closeApplet")) { } else if (event.equals("closeApplet")) {
if (param.containsKey("appId") && param.get("appId") instanceof String) { if (param.containsKey("appletId") && param.get("appletId") instanceof String) {
String appId = (String) param.get("appId"); String appId = (String) param.get("appletId");
FinAppClient.INSTANCE.getAppletApiManager().closeApplet(appId); FinAppClient.INSTANCE.getAppletApiManager().closeApplet(appId);
callback.onSuccess(null); callback.onSuccess(null);
} else { } else {

View File

@ -34,7 +34,7 @@ android {
defaultConfig { defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.finogeeks.mop_example" applicationId "com.finogeeks.finclip.demo"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 30 targetSdkVersion 30
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()

View File

@ -95,13 +95,6 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.12.11" version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.1.3"
meta: meta:
dependency: transitive dependency: transitive
description: description:
@ -115,7 +108,7 @@ packages:
path: ".." path: ".."
relative: true relative: true
source: path source: path
version: "2.36.5" version: "2.36.3"
path: path:
dependency: transitive dependency: transitive
description: description:
@ -169,7 +162,7 @@ packages:
name: test_api name: test_api
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.4.8" version: "0.4.3"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:

View File

@ -88,13 +88,6 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.12.11" version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.1.3"
meta: meta:
dependency: transitive dependency: transitive
description: description:
@ -155,7 +148,7 @@ packages:
name: test_api name: test_api
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.4.8" version: "0.4.3"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description: