diff --git a/lib/pages/download/detail/widgets/item.dart b/lib/pages/download/detail/widgets/item.dart index 78d60f58f..2263b3eeb 100644 --- a/lib/pages/download/detail/widgets/item.dart +++ b/lib/pages/download/detail/widgets/item.dart @@ -76,6 +76,8 @@ class DetailItem extends StatelessWidget { ); if (res) { SmartDialog.showToast('更新成功'); + } else { + SmartDialog.showToast('更新失败'); } }, dense: true, diff --git a/lib/services/download/download_service.dart b/lib/services/download/download_service.dart index b96186a45..136652529 100644 --- a/lib/services/download/download_service.dart +++ b/lib/services/download/download_service.dart @@ -315,10 +315,9 @@ class DownloadService extends GetxService { final danmaku = res.removeAt(0).data; for (var i in res) { - if (!i.isSuccess) { - throw i.toString(); + if (i.isSuccess) { + danmaku.elems.addAll(i.data.elems); } - danmaku.elems.addAll(i.data.elems); } res.clear(); await danmakuFile.writeAsBytes(danmaku.writeToBuffer());