Trtc Log名字修改

This commit is contained in:
huangjian
2022-01-06 15:12:52 +08:00
parent 0ad9996b31
commit c30552c2a5
2 changed files with 1 additions and 18 deletions

View File

@@ -83,23 +83,6 @@ object HomeModel : BaseModel() {
}.compose(RxHelper.handleSchAndExce())
}
fun getGameCode(): Single<Int> {
return api.getCode("https://fat-mgp-hello.sudden.ltd/login", AuthModel.get().currentUid)
.flatMap { unReadCountInfoServiceResult ->
if (unReadCountInfoServiceResult.isSuccess) {
val unReadCountInfo = unReadCountInfoServiceResult.data
if (unReadCountInfo != null) {
Single.just(unReadCountInfoServiceResult.data?.total ?: 0)
} else {
Single.just(0)
}
} else {
Single.just(0)
}
}.compose(RxHelper.handleSchAndExce())
}
suspend fun getHomeBanner(type: String): List<BannerInfo>? =
launchRequest {
api.apiHomeBanner(

View File

@@ -67,7 +67,7 @@ public class TRtcEngineManager extends BaseEngine {
mRtcEngine.enableDualStreamMode(true);
mRtcEngine.setLogFile(Environment.getExternalStorageDirectory()
+ File.separator + BasicConfig.INSTANCE.getAppContext().getPackageName()
+ "/log/agora-rtc.log");
+ "/log/trtc.log");
}
mRtcEngine.joinChannel(AvRoomDataManager.get().trtcSig, String.valueOf(channelId), null, (int) uid);
}