Quellcode durchsuchen

修复问题

tags/0.0.11
“yanghuaxuan” vor 3 Jahren
Ursprung
Commit
6567bb6600
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. +2
    -2
      android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java
  2. +1
    -1
      android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcPlugin.java

+ 2
- 2
android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java Datei anzeigen

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



+ 1
- 1
android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcPlugin.java Datei anzeigen

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


Laden…
Abbrechen
Speichern