Przeglądaj źródła

修复问题

tags/0.0.10
“yanghuaxuan” 3 lat temu
rodzic
commit
af235e62b0
2 zmienionych plików z 2 dodań i 2 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz