opt video action

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-24 18:22:49 +08:00
parent 0c6bc9d58a
commit d567c296f8
6 changed files with 118 additions and 71 deletions

View File

@@ -1,22 +1,22 @@
class Stat {
num? coins;
num coins;
int? danmakus;
int? favorite;
int favorite;
int? favorites;
String? followText;
int? likes;
int likes;
int? reply;
int? share;
int? views;
int? vt;
Stat({
this.coins,
required this.coins,
this.danmakus,
this.favorite,
required this.favorite,
this.favorites,
this.followText,
this.likes,
required this.likes,
this.reply,
this.share,
this.views,
@@ -24,12 +24,12 @@ class Stat {
});
factory Stat.fromJson(Map<String, dynamic> json) => Stat(
coins: json["coins"],
coins: json["coins"] ?? 0,
danmakus: json["danmakus"],
favorite: json["favorite"],
favorite: json["favorite"] ?? 0,
favorites: json["favorites"],
followText: json["follow_text"],
likes: json["likes"],
likes: json["likes"] ?? 0,
reply: json["reply"],
share: json["share"],
views: json["views"],

View File

@@ -3,12 +3,12 @@ class Stat {
int? view;
int? danmaku;
int? reply;
int? favorite;
num? coin;
int favorite;
num coin;
int? share;
int? nowRank;
int? hisRank;
int? like;
int like;
int? dislike;
String? evaluation;
int? vt;
@@ -18,12 +18,12 @@ class Stat {
this.view,
this.danmaku,
this.reply,
this.favorite,
this.coin,
required this.favorite,
required this.coin,
this.share,
this.nowRank,
this.hisRank,
this.like,
required this.like,
this.dislike,
this.evaluation,
this.vt,
@@ -34,12 +34,12 @@ class Stat {
view: json['view'] as int?,
danmaku: json['danmaku'] as int?,
reply: json['reply'] as int?,
favorite: json['favorite'] as int?,
coin: json['coin'] as num?,
favorite: json['favorite'] as int? ?? 0,
coin: json['coin'] as num? ?? 0,
share: json['share'] as int?,
nowRank: json['now_rank'] as int?,
hisRank: json['his_rank'] as int?,
like: json['like'] as int?,
like: json['like'] as int? ?? 0,
dislike: json['dislike'] as int?,
evaluation: json['evaluation'] as String?,
vt: json['vt'] as int?,