From b796bdbbb9f761a3c8757265f765db3e6da47da1 Mon Sep 17 00:00:00 2001 From: 111 <1509332485@qq.com> Date: Mon, 20 Apr 2026 17:50:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E7=94=A8=E5=9B=9E=E7=9B=91?= =?UTF-8?q?=E5=90=AC=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/task_billing.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/task_billing.go b/service/task_billing.go index 4ebcd2601259..ce82823f058c 100644 --- a/service/task_billing.go +++ b/service/task_billing.go @@ -165,8 +165,8 @@ func RefundTaskQuota(ctx context.Context, task *model.Task, reason string) { taskAdjustTokenQuota(ctx, task, -quota) //3. 更新用户和渠道的使用额度 - model.UpdateUserUsedQuotaAndRequestCount(task.UserId, -quota) - model.UpdateChannelUsedQuota(task.ChannelId, -quota) + //model.UpdateUserUsedQuotaAndRequestCount(task.UserId, -quota) + //model.UpdateChannelUsedQuota(task.ChannelId, -quota) // 4. 记录日志 other := taskBillingOther(task) @@ -230,8 +230,8 @@ func RecalculateTaskQuota(ctx context.Context, task *model.Task, actualQuota int } else { logType = model.LogTypeRefund logQuota = -quotaDelta - model.UpdateUserUsedQuotaAndRequestCount(task.UserId, -quotaDelta) - model.UpdateChannelUsedQuota(task.ChannelId, -quotaDelta) + //model.UpdateUserUsedQuotaAndRequestCount(task.UserId, -quotaDelta) + //model.UpdateChannelUsedQuota(task.ChannelId, -quotaDelta) } other := taskBillingOther(task) other["task_id"] = task.TaskID