Skip to content

Commit

Permalink
add note to DanmakuModel
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Jan 15, 2025
1 parent 79a54cd commit 5c5e6ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/data/model/DanmakuModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ data class DanmakuModel(
val location: DanmakuLocation,
val text: String,
val color: Int,
// NOTE: 不要加字段. 新加的字段的默认值并不能在反序列化时起作用, 也就会导致无法反序列化旧数据
val sendTime: Long = System.currentTimeMillis(),
val complaintCount: Int = 0,
)

0 comments on commit 5c5e6ae

Please sign in to comment.