瀏覽代碼

fix. convert

matrixbirds 5 年之前
父節點
當前提交
9ee5209def
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      android/src/main/java/com/syan/agora/AgoraModule.java

+ 2
- 2
android/src/main/java/com/syan/agora/AgoraModule.java 查看文件

@@ -1368,10 +1368,10 @@ public class AgoraModule extends ReactContextBaseJavaModule {
1368 1368
     @ReactMethod
1369 1369
     public void getCameraMaxZoomFactor(Promise promise) {
1370 1370
         try {
1371
-            int res = AgoraManager.getInstance().mRtcEngine.getCameraMaxZoomFactor();
1371
+            double res = AgoraManager.getInstance().mRtcEngine.getCameraMaxZoomFactor();
1372 1372
             WritableMap map = Arguments.createMap();
1373 1373
             map.putBoolean("success", true);
1374
-            map.putInt("value", res);
1374
+            map.putDouble("value", res);
1375 1375
             promise.resolve(map);
1376 1376
         } catch (Exception e) {
1377 1377
             promise.reject(e);