diff --git a/lib/pages/history/controller.dart b/lib/pages/history/controller.dart index aa098b2b..e7822cd9 100644 --- a/lib/pages/history/controller.dart +++ b/lib/pages/history/controller.dart @@ -180,7 +180,11 @@ class HistoryController extends GetxController { List result = historyList.where((e) => e.checked!).toList(); for (HisListItem i in result) { - String resKid = 'archive_${i.kid}'; + String str = 'archive'; + try { + str = i.history!.business!; + } catch (_) {} + String resKid = '${str}_${i.kid}'; await UserHttp.delHistory(resKid); historyList.removeWhere((e) => e.kid == i.kid); }