chore: 移除计费相关调试打印日志

This commit is contained in:
2026-07-04 20:05:52 +08:00
parent fe64d178ad
commit b9dff27e33
2 changed files with 0 additions and 10 deletions
-4
View File
@@ -125,9 +125,7 @@ func (w *asyncWorker) handleOne(ctx context.Context, task *entity.ModelGatewayTa
if billingResult != nil {
task.BillingData[0] = billingResult
totalFee := gconv.Float64(billingResult["total_fee"])
fmt.Printf("[handleOne] 计费处理 totalFee1=%f", totalFee)
if totalFee > 0 {
fmt.Printf("[handleOne] 计费处理 totalFee2=%f", totalFee)
_ = gateway.DeductBalance(util.AsyncCtx(ctx), model.TenantId, -totalFee)
}
}
@@ -338,9 +336,7 @@ func (w *asyncWorker) parseAndRetry(ctx context.Context, body map[string]any, mo
if billingResult != nil {
task.BillingData = append(task.BillingData, billingResult)
totalFee := gconv.Float64(billingResult["total_fee"])
fmt.Println("totalFee==================", totalFee)
if totalFee > 0 {
fmt.Println("deduct balance================", totalFee)
_ = gateway.DeductBalance(util.AsyncCtx(ctx), task.TenantId, -totalFee)
}
}