fix[声望升级-去掉多人PK,展示主播信息延迟代码]

This commit is contained in:
Martin 2024-06-01 14:24:10 +08:00
parent 19c270ad22
commit a061637492
3 changed files with 4 additions and 12 deletions

View File

@ -79,9 +79,9 @@ public class CommonAppConfig {
public static String SWToken = ""; //声网Token
public static final String SWChannelPrefix = "g";
//测试服
public static final String SWAPPId = "4cf0376582d742ac8a96778b25b1079e";
//public static final String SWAPPId = "4cf0376582d742ac8a96778b25b1079e";
//正式服
// public static final String SWAPPId = "d4a5879524d74c20a7bdd667b0f2ca21";
public static final String SWAPPId = "d4a5879524d74c20a7bdd667b0f2ca21";

View File

@ -421,10 +421,9 @@ public class SWAuManager extends BaseCacheManager {
}
public void preloadChannel(List<LiveBean> uids){
L.eSw("设置秒开数据");
for (int i = 0; i <uids.size(); i++) {
L.eSw("设置秒开数据 uid"+uids.get(i).getUid()+" --- userName:"+uids.get(i).getUserNiceName());
mRtcEngine.preloadChannel(CommonAppConfig.SWToken,getChannelName(uids.get(i).getUid()),Integer.parseInt(CommonAppConfig.getInstance().getUid()));
int code = mRtcEngine.preloadChannel(CommonAppConfig.SWToken,getChannelName(uids.get(i).getUid()),Integer.parseInt(CommonAppConfig.getInstance().getUid()));
L.eSw("设置秒开数据 uid"+uids.get(i).getUid()+" --- userName:"+uids.get(i).getUserNiceName()+" code "+code);
}
}
}

View File

@ -1285,9 +1285,6 @@ public class LiveSwLinkMicPkPresenter implements View.OnClickListener {
private void setDrPkUserInfoView(List<DrPkbean> drPkbeanList) {
L.eSw("setDrPkUserInfoView" + new Gson().toJson(drPkbeanList));
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
for (int j = 0; j < drPkbeanList.size(); j++) {
if (j == 0) {
L.eSw("j == 0" + j);
@ -1355,13 +1352,9 @@ public class LiveSwLinkMicPkPresenter implements View.OnClickListener {
detailsLinearLayout3.setVisibility(View.GONE);
linearGrade3.setVisibility(View.GONE);
ToastUtil.show(WordUtil.isNewZh() ? "接受成功" : "Success");
}
}
}
}, 1000);
L.eSw("dRjoinOtherRoom:size:" + drPkbeanList.size() + " json " + new Gson().toJson(drPkbeanList));
}