mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-14 21:24:02 +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) {
|
if (res) {
|
||||||
SmartDialog.showToast('更新成功');
|
SmartDialog.showToast('更新成功');
|
||||||
|
} else {
|
||||||
|
SmartDialog.showToast('更新失败');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dense: true,
|
dense: true,
|
||||||
|
|||||||
@@ -315,10 +315,9 @@ class DownloadService extends GetxService {
|
|||||||
|
|
||||||
final danmaku = res.removeAt(0).data;
|
final danmaku = res.removeAt(0).data;
|
||||||
for (var i in res) {
|
for (var i in res) {
|
||||||
if (!i.isSuccess) {
|
if (i.isSuccess) {
|
||||||
throw i.toString();
|
danmaku.elems.addAll(i.data.elems);
|
||||||
}
|
}
|
||||||
danmaku.elems.addAll(i.data.elems);
|
|
||||||
}
|
}
|
||||||
res.clear();
|
res.clear();
|
||||||
await danmakuFile.writeAsBytes(danmaku.writeToBuffer());
|
await danmakuFile.writeAsBytes(danmaku.writeToBuffer());
|
||||||
|
|||||||
Reference in New Issue
Block a user