refactor: 将 ComputeQuotaResetAt 和 ValidateQuotaResetConfig 函数中的 map 类型从 map[string]interface{} 修改为 map[string]any

This commit is contained in:
wucm667
2026-03-13 11:44:49 +08:00
parent 5b85005945
commit 2573107b32

View File

@@ -1405,7 +1405,7 @@ func (a *Account) isFixedWeeklyPeriodExpired(periodStart time.Time) bool {
// ComputeQuotaResetAt 根据当前配置计算并填充 extra 中的 quota_daily_reset_at / quota_weekly_reset_at
// 在保存账号配置时调用
func ComputeQuotaResetAt(extra map[string]interface{}) {
func ComputeQuotaResetAt(extra map[string]any) {
now := time.Now()
tzName, _ := extra["quota_reset_timezone"].(string)
if tzName == "" {
@@ -1449,7 +1449,7 @@ func ComputeQuotaResetAt(extra map[string]interface{}) {
}
// ValidateQuotaResetConfig 校验配额固定重置时间配置的合法性
func ValidateQuotaResetConfig(extra map[string]interface{}) error {
func ValidateQuotaResetConfig(extra map[string]any) error {
if extra == nil {
return nil
}