fix:修复房间排行榜热度-最小化后恢复页面未展示最新值bug

This commit is contained in:
max
2024-06-21 15:34:16 +08:00
parent cf078ebc5b
commit 693a14d6cf
2 changed files with 11 additions and 0 deletions

View File

@@ -1207,6 +1207,14 @@ public final class AvRoomDataManager {
this.roomUidList = roomUidList;
}
public void setSerialValue(Double value){
if (value == null) {
serialValue = 0;
} else {
serialValue = value;
}
}
public boolean isParty() {
return isParty;
}

View File

@@ -19,6 +19,7 @@ import androidx.annotation.Nullable;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.chwl.core.gift.bean.GiftType;
import com.chwl.core.im.custom.bean.RoomSerialValueChangedAttachment;
import com.chwl.core.initial.InitialModel;
import com.chwl.core.monsterhunting.bean.MonsterDataBean;
import com.google.gson.Gson;
@@ -1490,6 +1491,8 @@ public final class IMNetEaseManager {
break;
case CUSTOM_MSG_ROOM_SERIAL_VALUE_CHANGED:
if (second == CUSTOM_MSG_ROOM_SERIAL_VALUE_CHANGED_SUB) {
RoomSerialValueChangedAttachment serialValueAttachment = (RoomSerialValueChangedAttachment) attachment;
AvRoomDataManager.get().setSerialValue(serialValueAttachment.getSerialValue());
noticeRoomEvent(msg, RoomEvent.SERIAL_VALUE_CHANGED);
}
break;