优化底部操作栏样式,调整布局和背景色,并在分类编辑页面添加安全距离
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user