From 48f357de177d85b19829802847da3fa32d3a8623 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Wed, 5 Jul 2023 17:30:57 +0800 Subject: [PATCH 1/4] update getUserProfile --- .../mop/api/mop/AppletHandlerModule.java | 4 ++ .../finogeeks/mop/api/mop/InitSDKModule.java | 4 ++ .../mop/impls/MyUserProfileHandler.java | 57 +++++++++++++++++++ example/lib/main.dart | 17 ++++++ example/pubspec.lock | 11 +--- pubspec.lock | 28 ++++----- 6 files changed, 98 insertions(+), 23 deletions(-) create mode 100644 android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java index aa54290..2b7b830 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java @@ -24,6 +24,7 @@ import com.finogeeks.mop.interfaces.ICallback; import com.finogeeks.mop.service.MopPluginService; import com.finogeeks.mop.utils.AppletUtils; import com.finogeeks.mop.utils.GsonUtil; +import com.finogeeks.mop.impls.MyUserProfileHandler; import com.google.gson.reflect.TypeToken; import org.jetbrains.annotations.NotNull; @@ -65,6 +66,9 @@ public class AppletHandlerModule extends BaseApi { Log.d("AppletHandlerModule", "registerAppletHandler"); MethodChannel channel = MopPluginService.getInstance().getMethodChannel(); + // getUserProfile的内置实现 + FinAppClient.INSTANCE.getFinAppConfig().setGetUserProfileHandlerClass(MyUserProfileHandler.class.getName()); + FinAppClient.INSTANCE.getAppletApiManager().setAppletHandler(mIAppletHandler = new IAppletHandler() { @Nullable diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java index 628a555..1f08bb3 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java @@ -14,6 +14,7 @@ import com.finogeeks.mop.api.BaseApi; import com.finogeeks.mop.api.mop.util.InitUtils; import com.finogeeks.mop.interfaces.ICallback; import com.finogeeks.mop.service.MopPluginService; +import com.finogeeks.mop.impls.MyUserProfileHandler; import com.finogeeks.xlog.XLogLevel; import com.google.gson.Gson; @@ -199,6 +200,9 @@ public class InitSDKModule extends BaseApi { configBuilder.setLocale(Locale.SIMPLIFIED_CHINESE); } + // getUserProfile的内置实现 + configBuilder.setGetUserProfileHandlerClass(MyUserProfileHandler.class.getName()); + // uiConfig FinAppConfig.UIConfig uiConfig = InitUtils.createUIConfigFromMap(uiConfigMap); if (uiConfig != null) { diff --git a/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java b/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java new file mode 100644 index 0000000..295866a --- /dev/null +++ b/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java @@ -0,0 +1,57 @@ +package com.finogeeks.mop.impls; + +import android.content.Context; +import android.os.Handler; +import android.os.Looper; +import android.util.Log; + +import com.finogeeks.lib.applet.client.FinAppInfo; +import com.finogeeks.lib.applet.modules.userprofile.IUserProfileHandler; +import com.finogeeks.mop.service.MopPluginService; + +import java.util.Map; + +import org.jetbrains.annotations.NotNull; +import org.json.JSONObject; + +import io.flutter.plugin.common.MethodChannel; + +public class MyUserProfileHandler implements IUserProfileHandler { + private static final String TAG = "MyUserProfileHandler"; + + private Handler handler = new Handler(Looper.getMainLooper()); + + @Override + public void getUserProfileWithAppletInfo(@NotNull Context context, @NotNull FinAppInfo finAppInfo, @NotNull UserProfileCallback callback) { + MethodChannel channel = MopPluginService.getInstance().getMethodChannel(); + Log.d(TAG, "getUserProfileWithAppletInfo:"); + channel.invokeMethod("extensionApi:getUserProfile", null, new MethodChannel.Result() { + @Override + public void success(Object mapResult) { + JSONObject result = null; + try { + result = new JSONObject(mapResult); + } catch (Exception e) { + + } + + if (result == null) { + callback.onError(null); + } else { + callback.onSuccess(result); + } + } + + @Override + public void error(String errorCode, String errorMessage, Object errorDetails) { + callback.onError(null); + } + + @Override + public void notImplemented() { + callback.onError(null); + } + }); + + } +} diff --git a/example/lib/main.dart b/example/lib/main.dart index efd7c1b..411b093 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -81,9 +81,26 @@ class _MyAppState extends State { print(res); Mop.instance.registerAppletHandler(MyAppletHandler()); + Mop.instance.registerExtensionApi('getUserProfile', getUserProfile); + if (!mounted) return; } + Future> getUserProfile(dynamic params) async { + Map result = { + "userInfo":{ + "nickName" : "haley", + "avatarUrl" : "https://www.finclip.com", + "gender" : 1, + "country" : "China", + "province" : "Guangdong", + "city" : "shenzhen", + } + }; + + return result; +} + Widget _buildAppletItem( String appletId, String itemName, VoidCallback tapAction) { return GestureDetector( diff --git a/example/pubspec.lock b/example/pubspec.lock index c8e9952..10ef965 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -115,7 +115,7 @@ packages: path: ".." relative: true source: path - version: "2.40.13" + version: "2.41.1" path: dependency: transitive description: @@ -169,14 +169,7 @@ packages: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.4.3" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.flutter-io.cn" - source: hosted - version: "1.3.0" + version: "0.4.9" vector_math: dependency: transitive description: diff --git a/pubspec.lock b/pubspec.lock index f39f99b..7d68fe5 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -42,14 +42,14 @@ packages: name: collection url: "https://pub.flutter-io.cn" source: hosted - version: "1.15.0" + version: "1.16.0" fake_async: dependency: transitive description: name: fake_async url: "https://pub.flutter-io.cn" source: hosted - version: "1.2.0" + version: "1.3.0" flutter: dependency: "direct main" description: flutter @@ -88,6 +88,13 @@ packages: url: "https://pub.flutter-io.cn" source: hosted 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.4" meta: dependency: transitive description: @@ -101,7 +108,7 @@ packages: name: path url: "https://pub.flutter-io.cn" source: hosted - version: "1.8.0" + version: "1.8.1" sky_engine: dependency: transitive description: flutter @@ -113,7 +120,7 @@ packages: name: source_span url: "https://pub.flutter-io.cn" source: hosted - version: "1.8.1" + version: "1.8.2" stack_trace: dependency: transitive description: @@ -148,21 +155,14 @@ packages: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.4.3" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.flutter-io.cn" - source: hosted - version: "1.3.0" + version: "0.4.9" vector_math: dependency: transitive description: name: vector_math url: "https://pub.flutter-io.cn" source: hosted - version: "2.1.1" + version: "2.1.2" sdks: - dart: ">=2.14.0 <3.0.0" + dart: ">=2.17.0-0 <3.0.0" flutter: ">=2.2.3" From 2abccef9631d6c815ae288362873b38878f9a822 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Tue, 11 Jul 2023 09:45:14 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix=20=E5=AE=89=E5=8D=93getUserProfile=20?= =?UTF-8?q?=E6=9C=AA=E5=AE=9E=E7=8E=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.settings/org.eclipse.buildship.core.prefs | 2 +- .../finogeeks/mop/impls/MyUserProfileHandler.java | 3 ++- example/android/app/build.gradle | 2 +- example/lib/main.dart | 15 +++++++++++++-- lib/mop.dart | 1 - 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/android/.settings/org.eclipse.buildship.core.prefs b/android/.settings/org.eclipse.buildship.core.prefs index 41f5edb..c7199bd 100644 --- a/android/.settings/org.eclipse.buildship.core.prefs +++ b/android/.settings/org.eclipse.buildship.core.prefs @@ -2,7 +2,7 @@ arguments=--init-script /var/folders/tv/dbm7kt650fvdxrtf0k7xgxcm0000gn/T/d146c97 auto.sync=false build.scans.enabled=false connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.4.2)) -connection.project.dir= +connection.project.dir=../../finosprite/android eclipse.preferences.version=1 gradle.user.home= java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home diff --git a/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java b/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java index 295866a..a5cf050 100644 --- a/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java +++ b/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java @@ -25,12 +25,13 @@ public class MyUserProfileHandler implements IUserProfileHandler { public void getUserProfileWithAppletInfo(@NotNull Context context, @NotNull FinAppInfo finAppInfo, @NotNull UserProfileCallback callback) { MethodChannel channel = MopPluginService.getInstance().getMethodChannel(); Log.d(TAG, "getUserProfileWithAppletInfo:"); + Log.d(TAG, "channel:" + channel !=null ? "存在": "不存在" ); channel.invokeMethod("extensionApi:getUserProfile", null, new MethodChannel.Result() { @Override public void success(Object mapResult) { JSONObject result = null; try { - result = new JSONObject(mapResult); + result = new JSONObject((Map)mapResult); } catch (Exception e) { } diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 9a095ec..548b229 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -70,7 +70,7 @@ flutter { } dependencies { - def sdk_version = "2.40.1" + def sdk_version = "2.41.1" compileOnly "com.finogeeks.lib:finapplet:${sdk_version}" implementation "com.finogeeks.mop:plugins:${sdk_version}" } diff --git a/example/lib/main.dart b/example/lib/main.dart index 411b093..a0f6fb1 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -98,7 +98,7 @@ class _MyAppState extends State { } }; - return result; + return Future.value(result); } Widget _buildAppletItem( @@ -248,7 +248,18 @@ class MyAppletHandler extends AppletHandler { @override Future> getUserInfo() { // TODO: implement getUserInfo - throw UnimplementedError(); + Map result = { + "userInfo":{ + "nickName" : "haley", + "avatarUrl" : "https://www.finclip.com", + "gender" : 1, + "country" : "China", + "province" : "Guangdong", + "city" : "shenzhen", + } + }; + + return Future.value(result); } @override diff --git a/lib/mop.dart b/lib/mop.dart index e2a769a..a12636e 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -411,7 +411,6 @@ class UIConfig { "disableSlideCloseAppletGesture": disableSlideCloseAppletGesture, "appletText": appletText, "loadingLayoutCls": loadingLayoutCls, - "useNativeLiveComponent": useNativeLiveComponent, }; } } From 10aba3eb83bd6d0c4183696c22c67a8a48b4aa61 Mon Sep 17 00:00:00 2001 From: yangbinqiao Date: Mon, 24 Jul 2023 09:32:08 +0800 Subject: [PATCH 3/4] =?UTF-8?q?opt=EF=BC=9A=E9=80=82=E9=85=8D=E6=A0=B8?= =?UTF-8?q?=E5=BF=83SDK=E5=B0=86getUserProfile=E7=A7=BB=E8=87=B3=E4=B8=BB?= =?UTF-8?q?=E8=BF=9B=E7=A8=8B=E6=89=A7=E8=A1=8C=E5=81=9A=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/build.gradle | 4 +- .../mop/impls/MyUserProfileHandler.java | 49 ++++++++++--------- example/android/app/build.gradle | 4 +- example/pubspec.lock | 31 +++++------- pubspec.lock | 31 +++++------- 5 files changed, 53 insertions(+), 66 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 3298f63..556bcea 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -91,6 +91,6 @@ kapt { } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.finogeeks.lib:finapplet:2.41.1' - implementation 'com.finogeeks.mop:plugins:2.41.1' + implementation 'com.finogeeks.lib:finapplet:2.41.4-dev20230721v13' + implementation 'com.finogeeks.mop:plugins:2.41.3' } \ No newline at end of file diff --git a/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java b/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java index a5cf050..defe8b3 100644 --- a/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java +++ b/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java @@ -25,34 +25,35 @@ public class MyUserProfileHandler implements IUserProfileHandler { public void getUserProfileWithAppletInfo(@NotNull Context context, @NotNull FinAppInfo finAppInfo, @NotNull UserProfileCallback callback) { MethodChannel channel = MopPluginService.getInstance().getMethodChannel(); Log.d(TAG, "getUserProfileWithAppletInfo:"); - Log.d(TAG, "channel:" + channel !=null ? "存在": "不存在" ); - channel.invokeMethod("extensionApi:getUserProfile", null, new MethodChannel.Result() { - @Override - public void success(Object mapResult) { - JSONObject result = null; - try { - result = new JSONObject((Map)mapResult); - } catch (Exception e) { - + Log.d(TAG, "channel:" + (channel != null ? "存在" : "不存在")); + new Handler(Looper.getMainLooper()).post(() -> { + channel.invokeMethod("extensionApi:getUserProfile", null, new MethodChannel.Result() { + @Override + public void success(Object mapResult) { + JSONObject result = null; + try { + result = new JSONObject((Map) mapResult); + } catch (Exception e) { + + } + + if (result == null) { + callback.onError(null); + } else { + callback.onSuccess(result); + } } - - if (result == null) { + + @Override + public void error(String errorCode, String errorMessage, Object errorDetails) { callback.onError(null); - } else { - callback.onSuccess(result); } - } - @Override - public void error(String errorCode, String errorMessage, Object errorDetails) { - callback.onError(null); - } - - @Override - public void notImplemented() { - callback.onError(null); - } + @Override + public void notImplemented() { + callback.onError(null); + } + }); }); - } } diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 548b229..c1d619b 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -70,7 +70,7 @@ flutter { } dependencies { - def sdk_version = "2.41.1" - compileOnly "com.finogeeks.lib:finapplet:${sdk_version}" + def sdk_version = "2.41.3" + compileOnly "com.finogeeks.lib:finapplet:2.41.4-dev20230721v13" implementation "com.finogeeks.mop:plugins:${sdk_version}" } diff --git a/example/pubspec.lock b/example/pubspec.lock index 10ef965..ee91b9b 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.flutter-io.cn" source: hosted - version: "2.8.2" + version: "2.9.0" boolean_selector: dependency: transitive description: @@ -21,21 +21,14 @@ packages: name: characters url: "https://pub.flutter-io.cn" source: hosted - version: "1.2.0" - charcode: - dependency: transitive - description: - name: charcode - url: "https://pub.flutter-io.cn" - source: hosted - version: "1.3.1" + version: "1.2.1" clock: dependency: transitive description: name: clock url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.0" + version: "1.1.1" collection: dependency: transitive description: @@ -56,7 +49,7 @@ packages: name: fake_async url: "https://pub.flutter-io.cn" source: hosted - version: "1.3.0" + version: "1.3.1" flutter: dependency: "direct main" description: flutter @@ -94,21 +87,21 @@ packages: name: matcher url: "https://pub.flutter-io.cn" source: hosted - version: "0.12.11" + version: "0.12.12" material_color_utilities: dependency: transitive description: name: material_color_utilities url: "https://pub.flutter-io.cn" source: hosted - version: "0.1.4" + version: "0.1.5" meta: dependency: transitive description: name: meta url: "https://pub.flutter-io.cn" source: hosted - version: "1.7.0" + version: "1.8.0" mop: dependency: "direct main" description: @@ -122,7 +115,7 @@ packages: name: path url: "https://pub.flutter-io.cn" source: hosted - version: "1.8.1" + version: "1.8.2" sky_engine: dependency: transitive description: flutter @@ -134,7 +127,7 @@ packages: name: source_span url: "https://pub.flutter-io.cn" source: hosted - version: "1.8.2" + version: "1.9.0" stack_trace: dependency: transitive description: @@ -155,21 +148,21 @@ packages: name: string_scanner url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.0" + version: "1.1.1" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.flutter-io.cn" source: hosted - version: "1.2.0" + version: "1.2.1" test_api: dependency: transitive description: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.4.9" + version: "0.4.12" vector_math: dependency: transitive description: diff --git a/pubspec.lock b/pubspec.lock index 7d68fe5..e3f3961 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.flutter-io.cn" source: hosted - version: "2.8.2" + version: "2.9.0" boolean_selector: dependency: transitive description: @@ -21,21 +21,14 @@ packages: name: characters url: "https://pub.flutter-io.cn" source: hosted - version: "1.2.0" - charcode: - dependency: transitive - description: - name: charcode - url: "https://pub.flutter-io.cn" - source: hosted - version: "1.3.1" + version: "1.2.1" clock: dependency: transitive description: name: clock url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.0" + version: "1.1.1" collection: dependency: transitive description: @@ -49,7 +42,7 @@ packages: name: fake_async url: "https://pub.flutter-io.cn" source: hosted - version: "1.3.0" + version: "1.3.1" flutter: dependency: "direct main" description: flutter @@ -87,28 +80,28 @@ packages: name: matcher url: "https://pub.flutter-io.cn" source: hosted - version: "0.12.11" + version: "0.12.12" material_color_utilities: dependency: transitive description: name: material_color_utilities url: "https://pub.flutter-io.cn" source: hosted - version: "0.1.4" + version: "0.1.5" meta: dependency: transitive description: name: meta url: "https://pub.flutter-io.cn" source: hosted - version: "1.7.0" + version: "1.8.0" path: dependency: transitive description: name: path url: "https://pub.flutter-io.cn" source: hosted - version: "1.8.1" + version: "1.8.2" sky_engine: dependency: transitive description: flutter @@ -120,7 +113,7 @@ packages: name: source_span url: "https://pub.flutter-io.cn" source: hosted - version: "1.8.2" + version: "1.9.0" stack_trace: dependency: transitive description: @@ -141,21 +134,21 @@ packages: name: string_scanner url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.0" + version: "1.1.1" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.flutter-io.cn" source: hosted - version: "1.2.0" + version: "1.2.1" test_api: dependency: transitive description: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.4.9" + version: "0.4.12" vector_math: dependency: transitive description: From 673f9f1f87815c36a8076ec264d6c93b9f01dc73 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Wed, 26 Jul 2023 11:19:04 +0800 Subject: [PATCH 4/4] =?UTF-8?q?update=20=E5=AE=89=E5=8D=93getUserProfile?= =?UTF-8?q?=E7=9A=84=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/.settings/org.eclipse.buildship.core.prefs | 2 +- .../src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java | 3 --- .../java/com/finogeeks/mop/impls/MyUserProfileHandler.java | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/android/.settings/org.eclipse.buildship.core.prefs b/android/.settings/org.eclipse.buildship.core.prefs index c7199bd..41f5edb 100644 --- a/android/.settings/org.eclipse.buildship.core.prefs +++ b/android/.settings/org.eclipse.buildship.core.prefs @@ -2,7 +2,7 @@ arguments=--init-script /var/folders/tv/dbm7kt650fvdxrtf0k7xgxcm0000gn/T/d146c97 auto.sync=false build.scans.enabled=false connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.4.2)) -connection.project.dir=../../finosprite/android +connection.project.dir= eclipse.preferences.version=1 gradle.user.home= java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java index 1f08bb3..1a644b3 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java @@ -200,9 +200,6 @@ public class InitSDKModule extends BaseApi { configBuilder.setLocale(Locale.SIMPLIFIED_CHINESE); } - // getUserProfile的内置实现 - configBuilder.setGetUserProfileHandlerClass(MyUserProfileHandler.class.getName()); - // uiConfig FinAppConfig.UIConfig uiConfig = InitUtils.createUIConfigFromMap(uiConfigMap); if (uiConfig != null) { diff --git a/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java b/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java index defe8b3..df9b560 100644 --- a/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java +++ b/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java @@ -25,7 +25,6 @@ public class MyUserProfileHandler implements IUserProfileHandler { public void getUserProfileWithAppletInfo(@NotNull Context context, @NotNull FinAppInfo finAppInfo, @NotNull UserProfileCallback callback) { MethodChannel channel = MopPluginService.getInstance().getMethodChannel(); Log.d(TAG, "getUserProfileWithAppletInfo:"); - Log.d(TAG, "channel:" + (channel != null ? "存在" : "不存在")); new Handler(Looper.getMainLooper()).post(() -> { channel.invokeMethod("extensionApi:getUserProfile", null, new MethodChannel.Result() { @Override