Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-23 12:20:47 +08:00
parent f220db96ed
commit 07e34eb17b
6 changed files with 91 additions and 96 deletions

View File

@@ -52,11 +52,11 @@ class HtmlRenderController extends ReplyController<MainListReply> {
});
DynamicsHttp.articleInfo(cvId: id.substring(2)).then((res) {
if (res['status']) {
favStat.value = {
favStat.addAll({
'status': true,
'isFav': res['data']?['favorite'] ?? false,
'favNum': res['data']?['stats']?['favorite'] ?? 0,
};
});
}
});
} else {
@@ -85,11 +85,11 @@ class HtmlRenderController extends ReplyController<MainListReply> {
if (res != null) {
type = res['commentType'];
if (res['favorite'] != null) {
favStat.value = {
favStat.addAll({
'status': true,
'isFav': res['favorite']['status'] ?? false,
'favNum': res['favorite']['count'] ?? 0,
};
});
}
}
} else {