mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-13 05:27:41 +08:00
Compare commits
1 Commits
1.1.5-pre2
...
1.1.5-pre3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9754b061dd |
@@ -76,6 +76,8 @@ class DetailItem extends StatelessWidget {
|
||||
);
|
||||
if (res) {
|
||||
SmartDialog.showToast('更新成功');
|
||||
} else {
|
||||
SmartDialog.showToast('更新失败');
|
||||
}
|
||||
},
|
||||
dense: true,
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user