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) {