Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-20 22:44:09 +08:00
parent db65e7df76
commit 7617bb692a
21 changed files with 279 additions and 280 deletions

View File

@@ -428,9 +428,10 @@ class ModuleAuthorModel extends Avatar {
}
type = json['type'];
if (PendantAvatar.showDecorate) {
decorate = json['decorate'] == null
? null
: Decorate.fromJson(json['decorate']);
final decorate = json['decorate'] ?? json['decoration_card'];
if (decorate != null) {
this.decorate = Decorate.fromJson(decorate);
}
} else {
pendant = null;
}
@@ -465,7 +466,7 @@ class Fan {
factory Fan.fromJson(Map<String, dynamic> json) => Fan(
color: json["color"],
numStr: json["num_str"],
numStr: json["num_str"] ?? json['num_desc'],
);
}