diff --git a/FaceUnity/src/main/java/com/yunbao/faceunity/FaceManager.java b/FaceUnity/src/main/java/com/yunbao/faceunity/FaceManager.java index e81d12597..9c31a0e86 100644 --- a/FaceUnity/src/main/java/com/yunbao/faceunity/FaceManager.java +++ b/FaceUnity/src/main/java/com/yunbao/faceunity/FaceManager.java @@ -60,20 +60,8 @@ public class FaceManager implements SensorEventListener { } FaceUnityData.mApplication = context; OkHttpUtils.getInstance().init(context, false); - FURenderManager.setCoreDebug(FULogger.LogLevel.OFF); - FURenderManager.setKitDebug(FULogger.LogLevel.OFF); - FURenderManager.registerFURender(context, Authpack.A(), new OperateCallback() { - @Override - public void onSuccess(int i, @NonNull String s) { - isInit = true; - } - - @Override - public void onFail(int i, @NonNull String s) { - - } - }); - + FURenderer.getInstance().setup(context); + isInit=true; } private FURenderer mFURenderer; @@ -82,7 +70,7 @@ public class FaceManager implements SensorEventListener { * 配置美颜SDK */ public void initFURender(Context context) { - FURenderer.getInstance().setup(context); + mFURenderer = FURenderer.getInstance(); mFURenderer.setInputTextureType(FUInputTextureEnum.FU_ADM_FLAG_COMMON_TEXTURE); mFURenderer.setCameraFacing(CameraFacingEnum.CAMERA_FRONT); diff --git a/FaceUnity/src/main/java/com/yunbao/faceunity/utils/FURenderer.java b/FaceUnity/src/main/java/com/yunbao/faceunity/utils/FURenderer.java index 313aed9eb..9abb0d32b 100644 --- a/FaceUnity/src/main/java/com/yunbao/faceunity/utils/FURenderer.java +++ b/FaceUnity/src/main/java/com/yunbao/faceunity/utils/FURenderer.java @@ -87,8 +87,8 @@ public class FURenderer extends IFURenderer { */ @Override public void setup(Context context) { - FURenderManager.setKitDebug(FULogger.LogLevel.TRACE); - FURenderManager.setCoreDebug(FULogger.LogLevel.DEBUG); + FURenderManager.setKitDebug(FULogger.LogLevel.OFF); + FURenderManager.setCoreDebug(FULogger.LogLevel.OFF); FURenderManager.registerFURender(context, Authpack.A(), new OperateCallback() { @Override public void onSuccess(int i, @NotNull String s) {