fix:修复房间排行榜热度-最小化后恢复页面未展示最新值bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user