Parcourir la source

修复问题

tags/0.0.10
“yanghuaxuan” il y a 3 ans
Parent
révision
af235e62b0
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

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


Chargement…
Annuler
Enregistrer