mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
feat: like count (#1640)
This commit is contained in:
committed by
GitHub
parent
71a170deb5
commit
6e1ceb1277
@@ -115,6 +115,11 @@ class _PlDanmakuState extends State<PlDanmaku> {
|
||||
DmUtils.decimalToColor(e.color),
|
||||
e.fontsize.toDouble(),
|
||||
jsonDecode(e.content.replaceAll('\n', '\\n')),
|
||||
extra: VideoDanmaku(
|
||||
id: e.id.toInt(),
|
||||
mid: e.midHash,
|
||||
like: e.like.toInt(),
|
||||
),
|
||||
),
|
||||
);
|
||||
} catch (_) {}
|
||||
@@ -131,7 +136,11 @@ class _PlDanmakuState extends State<PlDanmaku> {
|
||||
e.colorful == DmColorfulType.VipGradualColor,
|
||||
count: e.hasCount() ? e.count : null,
|
||||
selfSend: e.isSelf,
|
||||
extra: VideoDanmaku(id: e.id.toInt(), mid: e.midHash),
|
||||
extra: VideoDanmaku(
|
||||
id: e.id.toInt(),
|
||||
mid: e.midHash,
|
||||
like: e.like.toInt(),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user