fix: 调整租户余额不足判断阈值为100

This commit is contained in:
2026-07-02 08:58:37 +08:00
parent 313bb692c7
commit 260d6547f2
+1 -1
View File
@@ -46,7 +46,7 @@ func (w *asyncWorker) handleOne(ctx context.Context, task *entity.ModelGatewayTa
// 1) 查询余额 // 1) 查询余额
// ============================================ // ============================================
surplus, _ = gateway.GetTenantSurplus(ctx, model.TenantId) surplus, _ = gateway.GetTenantSurplus(ctx, model.TenantId)
if surplus <= 0 { if surplus <= 100 {
w.failTask(ctx, task, startTime, "租户余额不足") w.failTask(ctx, task, startTime, "租户余额不足")
return return
} }