From 77f47b82422a6ecff23737255889837fef43d095 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sun, 8 Oct 2023 22:44:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/history/controller.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); }