Bläddra i källkod

修复问题

tags/0.0.11
“yanghuaxuan” 3 år sedan
förälder
incheckning
6567bb6600
2 ändrade filer med 3 tillägg och 3 borttagningar
  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 Visa fil

@@ -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 Visa fil

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


Laddar…
Avbryt
Spara