瀏覽代碼

修复问题

tags/0.0.11
“yanghuaxuan” 3 年之前
父節點
當前提交
6567bb6600
共有 2 個檔案被更改,包括 3 行新增3 行删除
  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 查看文件

@@ -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 查看文件

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


Loading…
取消
儲存