From 2573107b327a59f52f6cffc9fa710ef84be854dd Mon Sep 17 00:00:00 2001 From: wucm667 Date: Fri, 13 Mar 2026 11:44:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=20ComputeQuotaResetAt=20?= =?UTF-8?q?=E5=92=8C=20ValidateQuotaResetConfig=20=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=20map=20=E7=B1=BB=E5=9E=8B=E4=BB=8E=20map[st?= =?UTF-8?q?ring]interface{}=20=E4=BF=AE=E6=94=B9=E4=B8=BA=20map[string]any?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/service/account.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/internal/service/account.go b/backend/internal/service/account.go index 70643de1..9b00906b 100644 --- a/backend/internal/service/account.go +++ b/backend/internal/service/account.go @@ -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 }