6.5.4礼物冠名

This commit is contained in:
18401019693 2023-08-14 11:18:33 +08:00
parent 399bedb874
commit a618bee6b7
4 changed files with 8 additions and 3 deletions

View File

@ -281,6 +281,10 @@ public class IMLoginManager extends BaseCacheManager {
return userInfo; return userInfo;
} }
public void setMedalName(String medalName) {
userInfo.setMedalName(medalName);
}
/** /**
* 判断是否已登录 * 判断是否已登录
* *

View File

@ -277,6 +277,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
.append(userInfo.getId()) .append(userInfo.getId())
.append("&token=") .append("&token=")
.append(userInfo.getToken()) .append(userInfo.getToken())
.append("no_back=1")
.append("&for"); .append("&for");
Bundle bundle = new Bundle(); Bundle bundle = new Bundle();
bundle.putString("url", htmlUrl.toString()); bundle.putString("url", htmlUrl.toString());

View File

@ -99,7 +99,7 @@ public class SocketRyChatUtil {
.param("liangname", u.getGoodName()) .param("liangname", u.getGoodName())
.param("vip_type", u.getVip().getType()) .param("vip_type", u.getVip().getType())
.param("guard_type", guardType) .param("guard_type", guardType)
.param("medal_name", u.getMedalName()) .param("medal_name", model.getMedalName())
.param("medal_level", u.getMedalLevel()) .param("medal_level", u.getMedalLevel())
.param("good_num", u.getGoodnum()) .param("good_num", u.getGoodnum())
.param("ct", content) .param("ct", content)

View File

@ -409,7 +409,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
.enterRoomNew(mLiveBean.getStream(), mLiveBean.getUid(), mLiveBean.getCity(), new com.yunbao.common.http.base.HttpCallback<EnterRoomNewModel>() { .enterRoomNew(mLiveBean.getStream(), mLiveBean.getUid(), mLiveBean.getCity(), new com.yunbao.common.http.base.HttpCallback<EnterRoomNewModel>() {
@Override @Override
public void onSuccess(EnterRoomNewModel data) { public void onSuccess(EnterRoomNewModel data) {
IMLoginManager.get(mContext).getUserInfo().setMedalName(data.getEnterRoomInfo().getMedalName());
isEnterRoom = true; isEnterRoom = true;
if (TextUtils.isEmpty(leaveStream)) { if (TextUtils.isEmpty(leaveStream)) {
leaveStream = mLiveBean.getStream(); leaveStream = mLiveBean.getStream();
@ -1915,7 +1915,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
public void showGiftWall(String toUid, boolean isAnchor, String mAnchorName, String mAvatarUrl) { public void showGiftWall(String toUid, boolean isAnchor, String mAnchorName, String mAvatarUrl) {
if (mLiveRoomViewHolder != null) { if (mLiveRoomViewHolder != null) {
mLiveRoomViewHolder.showGiftWall(toUid, isAnchor,mAnchorName,mAvatarUrl); mLiveRoomViewHolder.showGiftWall(toUid, isAnchor, mAnchorName, mAvatarUrl);
} }
} }