From 6567bb6600a7585c0665e1e70bb1012639a6b387 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:39:52 +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 | 4 ++-- .../main/java/com/wxwx/flutter_alibc/FlutterAlibcPlugin.java | 2 +- 2 files changed, 3 insertions(+), 3 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 cc3b6ae..dd1b5a9 100644 --- a/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java +++ b/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java @@ -490,11 +490,11 @@ public class FlutterAlibcHandle { // AlibcTradeSDK.setShouldUseAlipay(call.argument("isNeed")); } - public void getUdid(MethodCall call,Result result) { + public void getUdid(MethodCall call,Result result1) { String udid = UTDevice.getUtdid(register.activity().getApplicationContext()); Map resMap = new HashMap(); resMap.put("udid", udid); - result.success(resMap); + result1.success(resMap); } 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 efe1866..b97029c 100644 --- a/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcPlugin.java +++ b/android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcPlugin.java @@ -43,7 +43,7 @@ public class FlutterAlibcPlugin implements MethodCallHandler { handle.syncForTaoke(call); }else if (call.method.equals("useAlipayNative")){ handle.useAlipayNative(call); - }if (call.method.equals("getUdid")){ + } else if (call.method.equals("getUdid")){ handle.getUdid(call,result); }else { result.notImplemented();