1035 bug修改,拍卖房心动礼物无法选择添加toast

This commit is contained in:
2025-12-04 15:18:30 +08:00
parent 64f538f04d
commit 0f0c2d97cc
2 changed files with 9 additions and 3 deletions

View File

@@ -2720,6 +2720,8 @@ public class RetrofitClient {
BaseModel<AuctionBean> auctionBeanBaseModel = response.body();
if (auctionBeanBaseModel.getCode() == 1) {
observer.onNext(auctionBeanBaseModel.getData());
} else if (auctionBeanBaseModel.getCode() == 0) {
ToastUtils.showShort(auctionBeanBaseModel.getMsg());
}
}
}

View File

@@ -481,9 +481,13 @@ class RoomMentorShipFragment(var mRoomInfo: RoomInfoResp?) :
fun event1035(messageEvent: RoomMessageEvent) {
val fromUserId = messageEvent.text.fromUserInfo.user_id
val viewPos = indexList.indexOf(fromUserId.toString())
val pitBean = mRoomInfo?.room_info?.pit_list!![indexList[viewPos].toInt() - 1]
viewList[viewPos].setData(pitBean)
for (i in 0 until viewList.size) {
if (viewList[i].pitBean?.user_id == fromUserId.toString()) {
val pitBean = mRoomInfo?.room_info?.pit_list!![indexList[i].toInt() - 1]
viewList[i].setData(pitBean)
break
}
}
}
fun event1039(messageEvent: RoomMessageEvent) {