feat: publish sanitized custom.97 source

This commit is contained in:
cneicy committed 2026-10-27 20:43:39 +08:00
1 parent 8e6ed0317b
commit 86c0276156
1022 files changed
+69903 -19207

No files matched your search

+3 -3
View File
@@ -42,7 +42,7 @@ type QuotaDataLogParams struct {
func UpdateQuotaData() {
for {
if common.DataExportEnabled {
common.SysLog("正在更新数据看板数据...")
common.SysLog(common.LogText("updating dashboard data..."))
SaveQuotaDataCache()
}
time.Sleep(time.Duration(common.DataExportInterval) * time.Minute)
@@ -122,7 +122,7 @@ func SaveQuotaDataCache() {
}
}
CacheQuotaData = make(map[string]*QuotaData)
common.SysLog(fmt.Sprintf("保存数据看板数据成功,共保存%d条数据", size))
common.SysLog(common.LogText("saved dashboard data, %d records", size))
}
func increaseQuotaData(quotaData *QuotaData) {
@@ -135,7 +135,7 @@ func increaseQuotaData(quotaData *QuotaData) {
"token_used": gorm.Expr("token_used + ?", quotaData.TokenUsed),
}).Error
if err != nil {
common.SysLog(fmt.Sprintf("increaseQuotaData error: %s", err))
common.SysLog(common.LogText("increaseQuotaData error: %s", err))
}
}