diff --git a/service/task/worker.go b/service/task/worker.go index 6146cb7..5f68996 100644 --- a/service/task/worker.go +++ b/service/task/worker.go @@ -46,7 +46,7 @@ func (w *asyncWorker) handleOne(ctx context.Context, task *entity.ModelGatewayTa // 1) 查询余额 // ============================================ surplus, _ = gateway.GetTenantSurplus(ctx, model.TenantId) - if surplus <= 0 { + if surplus <= 100 { w.failTask(ctx, task, startTime, "租户余额不足") return }