优化底部操作栏样式,调整布局和背景色,并在分类编辑页面添加安全距离
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 23s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s

This commit is contained in:
孙诚
2026-01-05 19:07:10 +08:00
parent 826f139fad
commit baa77341bc
5 changed files with 30 additions and 30 deletions

View File

@@ -163,6 +163,13 @@ public class TransactionPeriodicService(
.Where(d => d >= 1 && d <= 31)
.ToList();
// 如果当前为月末,且配置中有大于当月天数的日期,则也执行
var daysInMonth = DateTime.DaysInMonth(today.Year, today.Month);
if (today.Day == daysInMonth && executeDays.Any(d => d > daysInMonth))
{
return true;
}
return executeDays.Contains(today.Day);
}
@@ -175,7 +182,7 @@ public class TransactionPeriodicService(
return false;
// 计算当前是本季度的第几天
var quarterStartMonth = ((today.Month - 1) / 3) * 3 + 1;
var quarterStartMonth = (today.Month - 1) / 3 * 3 + 1;
var quarterStart = new DateTime(today.Year, quarterStartMonth, 1);
var daysSinceQuarterStart = (today - quarterStart).Days + 1;