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