From d6b6df3eeddf63935cb6314d1afee79ca80be77f Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sun, 24 Sep 2023 00:56:55 +0800 Subject: [PATCH] fix: issues #157 --- lib/http/reply.dart | 2 +- lib/pages/video/detail/reply/controller.dart | 2 +- lib/pages/video/detail/reply/view.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/http/reply.dart b/lib/http/reply.dart index 5dcbce6e..790a017f 100644 --- a/lib/http/reply.dart +++ b/lib/http/reply.dart @@ -26,7 +26,7 @@ class ReplyHttp { Map errMap = { -400: '请求错误', -404: '无此项', - 12002: '当前页面评论功能已关闭"', + 12002: '当前页面评论功能已关闭', 12009: '评论主体的type不合法', 12061: 'UP主已关闭评论区', }; diff --git a/lib/pages/video/detail/reply/controller.dart b/lib/pages/video/detail/reply/controller.dart index 207eb856..6bd0866f 100644 --- a/lib/pages/video/detail/reply/controller.dart +++ b/lib/pages/video/detail/reply/controller.dart @@ -96,8 +96,8 @@ class VideoReplyController extends GetxController { } else { replyList.addAll(replies); } + count.value = res['data'].page.count; } - count.value = res['data'].page.count; isLoadingMore = false; return res; } diff --git a/lib/pages/video/detail/reply/view.dart b/lib/pages/video/detail/reply/view.dart index 3f42c558..827fc3f9 100644 --- a/lib/pages/video/detail/reply/view.dart +++ b/lib/pages/video/detail/reply/view.dart @@ -195,7 +195,7 @@ class _VideoReplyPanelState extends State future: _futureBuilderFuture, builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.done) { - Map data = snapshot.data as Map; + var data = snapshot.data; if (data['status']) { // 请求成功 return Obx(