fix save reply

opt profile page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-11 23:36:33 +08:00
parent c346d586a5
commit 44ba554e0e
23 changed files with 64 additions and 57 deletions

View File

@@ -1,5 +1,5 @@
class Stat {
int? coins;
num? coins;
int? danmakus;
int? favorite;
int? favorites;

View File

@@ -2,7 +2,7 @@ import 'package:PiliPlus/models_new/pgc/pgc_info_model/danmaku.dart';
import 'package:PiliPlus/models_new/pgc/pgc_info_model/vt.dart';
class StatForUnity {
int? coin;
num? coin;
Danmaku? danmaku;
int? likes;
int? reply;
@@ -11,7 +11,7 @@ class StatForUnity {
StatForUnity({this.coin, this.danmaku, this.likes, this.reply, this.vt});
factory StatForUnity.fromJson(Map<String, dynamic> json) => StatForUnity(
coin: json['coin'] as int?,
coin: json['coin'] as num?,
danmaku: json['danmaku'] == null
? null
: Danmaku.fromJson(json['danmaku'] as Map<String, dynamic>),