修复在直播间内跳转自己的直播间问题

This commit is contained in:
18401019693 2023-09-11 10:29:16 +08:00
parent 406c67bf3a
commit 7ca8694aed
2 changed files with 16 additions and 5 deletions

View File

@ -9,9 +9,9 @@ ext {
]
manifestPlaceholders = [
//
serverHost : "https://napi.yaoulive.com",
//
// serverHost : " https://ceshi.yaoulive.com",
// serverHost : "https://napi.yaoulive.com",
//
serverHost : " https://ceshi.yaoulive.com",
@ -22,9 +22,9 @@ ext {
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
// true表示谷歌支付 false
isGooglePlay : true,
isGooglePlay : false,
//
isUploadLog : true,
//
isPluginModel : false, ]
isPluginModel : true, ]
}

View File

@ -2,6 +2,7 @@ package com.yunbao.live.dialog;
import static com.yunbao.common.CommonAppConfig.isGetNewWrap;
import static com.yunbao.common.utils.RouteUtil.PATH_COIN;
import static com.yunbao.live.views.LiveRoomViewHolder.bean1;
import android.annotation.SuppressLint;
import android.app.Dialog;
@ -447,6 +448,16 @@ public class LiveGiftPopup extends AbsDialogFragment {
GiftTopBean giftTopBean = new GiftTopBean();
giftTopBean.setName(data.getString("name"));
name.add(giftTopBean);
if (bean1 != null && IMLoginManager.get(mContext).isNewUserGif() && (data.getString("name").equals("熱門") || data.getString("name").equals("Hot"))) {
String giftJson = data.getString("giftlist");
List<LiveGiftBean> liveGiftBeans = JSONArray.parseArray(giftJson, LiveGiftBean.class);
liveGiftBeans.add(0, bean1);
if (mWishGiftId == null) {
mWishGiftId = "" + bean1.getId();
}
liveGiftList.getJSONObject(i).put("giftlist", JSONArray.toJSONString(liveGiftBeans));
}
}
giftTitleAdapter.addAllData(name);
if (!TextUtils.isEmpty(mWishGiftId) && liveGiftList.size() > 0) {