Bladeren bron

修复问题

tags/0.0.10
“yanghuaxuan” 3 jaren geleden
bovenliggende
commit
af235e62b0
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

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


Laden…
Annuleren
Opslaan