From 443f2b9deffaf85ccc85c657fd77c748910e70c7 Mon Sep 17 00:00:00 2001 From: xxe Date: Thu, 27 Oct 2022 10:41:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E7=BA=A7=E5=8D=A1=E4=B8=8D=E8=AE=BE?= =?UTF-8?q?=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HKCardOUT/Logic/Service/HKCore.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/HKCardOUT/Logic/Service/HKCore.cs b/HKCardOUT/Logic/Service/HKCore.cs index 95a0eb1..e514545 100644 --- a/HKCardOUT/Logic/Service/HKCore.cs +++ b/HKCardOUT/Logic/Service/HKCore.cs @@ -23,9 +23,17 @@ namespace HKCardOUT.Logic.Service .Where(t => t.CreateTime.Year == DateTime.Now.Year) .Where(t => t.CreateTime.Month == DateTime.Now.Month) .Where(t => t.CreateTime.Day == DateTime.Now.Day).ToList(); - if (DataBus.Cancel) - if (Old.Count > 3) return null; - return Old; + + if (DataBus.Admin.Contains(input.CardNo)) + { + return Old; + } + else + { + if (DataBus.Cancel) + if (Old.Count > 3) return null; + return Old; + } } bool GetCardStutas(string CardNo)