From af235e62b00d729d03467aa584544efda7ffc9ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Sat, 10 Apr 2021 18:28:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java | 2 +- .../main/java/com/wxwx/flutter_alibc/FlutterAlibcPlugin.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java b/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java index cc5a797..cc3b6ae 100644 --- a/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java +++ b/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java @@ -490,7 +490,7 @@ public class FlutterAlibcHandle { // AlibcTradeSDK.setShouldUseAlipay(call.argument("isNeed")); } - public void getUdid(MethodCall call) { + public void getUdid(MethodCall call,Result result) { String udid = UTDevice.getUtdid(register.activity().getApplicationContext()); Map resMap = new HashMap(); resMap.put("udid", udid); diff --git a/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcPlugin.java b/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcPlugin.java index eed04fe..efe1866 100644 --- a/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcPlugin.java +++ b/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcPlugin.java @@ -44,7 +44,7 @@ public class FlutterAlibcPlugin implements MethodCallHandler { }else if (call.method.equals("useAlipayNative")){ handle.useAlipayNative(call); }if (call.method.equals("getUdid")){ - handle.useAlipayNative(call); + handle.getUdid(call,result); }else { result.notImplemented(); }