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();