Merge remote-tracking branch 'origin/master'

This commit is contained in:
zlzw 2023-06-08 11:13:55 +08:00
commit 0c99324904
2 changed files with 24 additions and 9 deletions

View File

@ -4,14 +4,14 @@ ext {
buildToolsVersion: "29.0.2", buildToolsVersion: "29.0.2",
minSdkVersion : 21, minSdkVersion : 21,
targetSdkVersion : 31, targetSdkVersion : 31,
versionCode : 424, versionCode : 428,
versionName : "6.5.2" versionName : "6.5.2"
] ]
manifestPlaceholders = [ manifestPlaceholders = [
// //
// serverHost : "https://napi.yaoulive.com", serverHost : "https://napi.yaoulive.com",
// //
serverHost : "https://ceshi.yaoulive.com", // serverHost : "https://ceshi.yaoulive.com",
// //
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",

View File

@ -1467,14 +1467,29 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
@Override @Override
public void onSendGift(LiveReceiveGiftBean bean, SendBlindGiftEvent event) { public void onSendGift(LiveReceiveGiftBean bean, SendBlindGiftEvent event) {
if (event!=null){ if (event != null) {
//插入盲盒礼物消息 LiveChatBean liveChatBean = null;
bean.getLiveChatBean().setType(LiveChatBean.BLIND_BOX); if (!TextUtils.isEmpty(event.isBlindBoxStatus()) && TextUtils.equals(event.isBlindBoxStatus(), "true")) {
bean.getLiveChatBean().setContent(event.getGiftMsg()); if (!TextUtils.isEmpty(event.getDressName()) && !TextUtils.isEmpty(event.getDressMsg())) {
bean.getLiveChatBean().setGiftName(event.getGiftname()); liveChatBean = new LiveChatBean();
bean.getLiveChatBean().setUserNiceName(event.getUserNiceName()); liveChatBean.setUserNiceName(event.getUserNiceName());
liveChatBean.setType(LiveChatBean.BLIND_BOX);
liveChatBean.setGiftName(event.getDressName());
liveChatBean.setContent(event.getDressMsg());
}
//插入盲盒礼物消息
bean.getLiveChatBean().setType(LiveChatBean.BLIND_BOX);
bean.getLiveChatBean().setContent(event.getGiftMsg());
bean.getLiveChatBean().setGiftName(event.getGiftname());
bean.getLiveChatBean().setUserNiceName(event.getUserNiceName());
}
if (mLiveRoomViewHolder != null) { if (mLiveRoomViewHolder != null) {
if (bean.getmLiveUId().equals(bean.getRoomnum())) { if (bean.getmLiveUId().equals(bean.getRoomnum())) {
if (liveChatBean != null) {
mLiveRoomViewHolder.insertChat(liveChatBean, 1);
}
mLiveRoomViewHolder.insertChat(bean.getLiveChatBean(), 1); mLiveRoomViewHolder.insertChat(bean.getLiveChatBean(), 1);
} }
mLiveRoomViewHolder.showGiftMessage(bean, false); mLiveRoomViewHolder.showGiftMessage(bean, false);