Browse Source

修复问题

tags/0.0.10
“yanghuaxuan” 3 years ago
parent
commit
af235e62b0
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java
  2. +1
    -1
      android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcPlugin.java

+ 1
- 1
android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java View File

@@ -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<String, String> resMap = new HashMap();
resMap.put("udid", udid);


+ 1
- 1
android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcPlugin.java View File

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


Loading…
Cancel
Save