fix: 调整租户余额不足判断阈值为100
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user