mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 08:38:37 +00:00
@@ -106,18 +106,18 @@ class HistoryController
|
||||
|
||||
Future<void> _onDelete(Set<HistoryItemModel> removeList) async {
|
||||
SmartDialog.showLoading(msg: '请求中');
|
||||
final response = await UserHttp.delHistory(
|
||||
final res = await UserHttp.delHistory(
|
||||
removeList
|
||||
.map((item) => '${item.history.business}_${item.kid}')
|
||||
.join(','),
|
||||
account: account,
|
||||
);
|
||||
SmartDialog.dismiss();
|
||||
if (response.isSuccess) {
|
||||
if (res.isSuccess) {
|
||||
afterDelete(removeList);
|
||||
SmartDialog.showToast('已删除');
|
||||
} else {
|
||||
response.toast();
|
||||
res.toast();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user