From d4c2ef71cb60e5eb6e2b4b2a2ce338f32920d6e4 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 13 Jul 2023 10:39:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=BB=E6=92=AD=E5=8F=AF?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=97=A5=E5=BF=97=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/common/utils/LogUtil.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/utils/LogUtil.java b/common/src/main/java/com/yunbao/common/utils/LogUtil.java index 66d0c75d7..889027b41 100644 --- a/common/src/main/java/com/yunbao/common/utils/LogUtil.java +++ b/common/src/main/java/com/yunbao/common/utils/LogUtil.java @@ -25,6 +25,8 @@ import com.lzy.okserver.OkUpload; import com.lzy.okserver.upload.UploadListener; import com.lzy.okserver.upload.UploadTask; import com.yunbao.common.CommonAppConfig; +import com.yunbao.common.bean.IMLoginModel; +import com.yunbao.common.manager.IMLoginManager; import java.io.BufferedOutputStream; import java.io.File; @@ -157,7 +159,13 @@ public class LogUtil { public static void shareFile(Context context) { try { - if (!new File(Environment.getExternalStorageDirectory().getAbsolutePath(), "pdlive.debug").exists()) { + IMLoginModel bean = IMLoginManager.get(context).getUserInfo(); + boolean isAnchor=false; + if(bean!=null){ + isAnchor=bean.anchorUserType(); + } + //有debug文件或主播才允许 + if (!new File(Environment.getExternalStorageDirectory().getAbsolutePath(), "pdlive.debug").exists()&&!isAnchor) { return; } } catch (Exception e) {