opt handle res

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-29 17:17:35 +08:00
parent b643cb1bd0
commit 924d51d41b
198 changed files with 3715 additions and 2001 deletions

View File

@@ -114,7 +114,7 @@ class ReplyUtils {
// root reply
if (rpid == null) {
// no cookie check
dynamic res = await ReplyHttp.replyList(
var res = await ReplyHttp.replyList(
isLogin: false,
oid: oid,
nextOffset: '',
@@ -128,8 +128,8 @@ class ReplyUtils {
if (res is Error) {
SmartDialog.showToast('获取评论主列表时发生错误:${res.errMsg}');
return;
} else if (res is Success) {
ReplyData replies = res.response;
} else if (res.isSuccess) {
ReplyData replies = res.data;
int index =
replies.replies?.indexWhere((item) => item.rpid == replyId) ?? -1;
if (index != -1) {