diff --git a/Directory.Build.props b/Directory.Build.props index 9a6a3267..6efaab7b 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 2.2.1.1 + 2.2.1.2 diff --git a/XinjingdailyBot.Command/AdminCommand.cs b/XinjingdailyBot.Command/AdminCommand.cs index cebcee44..6b8aeefe 100644 --- a/XinjingdailyBot.Command/AdminCommand.cs +++ b/XinjingdailyBot.Command/AdminCommand.cs @@ -419,7 +419,7 @@ async Task exec() //获取最近一条解封记录 var lastUnbaned = await _banRecordService.Queryable() .Where(x => x.UserID == targetUser.UserID && (x.Type == EBanType.UnBan || x.Type == EBanType.Ban)) - .OrderByDescending(static x => x.BanTime.GetTimestamp()).FirstAsync(); + .OrderByDescending(static x => x.Id).FirstAsync(); var expireTime = DateTime.Now.AddDays(-WarnDuration); int warnCount = await _banRecordService.Queryable()