fix subtitle

This commit is contained in:
2024-11-12 17:49:02 +08:00
parent 293040f374
commit 775ab471f5
2 changed files with 4 additions and 2 deletions

View File

@@ -850,6 +850,7 @@ let console = {
* @param id {string} * @param id {string}
* @param title {string} * @param title {string}
* @param subtitle {string} * @param subtitle {string}
* @param subTitle {string} - equal to subtitle
* @param cover {string} * @param cover {string}
* @param tags {string[]} * @param tags {string[]}
* @param description {string} * @param description {string}
@@ -859,10 +860,11 @@ let console = {
* @param stars {number?} - 0-5, double * @param stars {number?} - 0-5, double
* @constructor * @constructor
*/ */
function Comic({id, title, subtitle, cover, tags, description, maxPage, language, favoriteId, stars}) { function Comic({id, title, subtitle, subTitle, cover, tags, description, maxPage, language, favoriteId, stars}) {
this.id = id; this.id = id;
this.title = title; this.title = title;
this.subtitle = subtitle; this.subtitle = subtitle;
this.subTitle = subTitle;
this.cover = cover; this.cover = cover;
this.tags = tags; this.tags = tags;
this.description = description; this.description = description;

View File

@@ -92,7 +92,7 @@ class Comic {
Comic.fromJson(Map<String, dynamic> json, this.sourceKey) Comic.fromJson(Map<String, dynamic> json, this.sourceKey)
: title = json["title"], : title = json["title"],
subtitle = json["subtitle"] ?? "", subtitle = json["subtitle"] ?? json["subTitle"] ?? "",
cover = json["cover"], cover = json["cover"],
id = json["id"], id = json["id"],
tags = List<String>.from(json["tags"] ?? []), tags = List<String>.from(json["tags"] ?? []),