chore: 移除计费相关调试打印日志
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user