fix: token update issue when status is not enabled

This commit is contained in:
Laisky.Cai
2024-11-20 03:13:12 +00:00
parent 6ab87f8a08
commit 423c11987b
7 changed files with 34 additions and 13 deletions

View File

@@ -34,7 +34,7 @@ func ShouldDisableChannel(err *model.Error, statusCode int) bool {
strings.Contains(lowerMessage, "credit") ||
strings.Contains(lowerMessage, "balance") ||
strings.Contains(lowerMessage, "permission denied") ||
strings.Contains(lowerMessage, "organization has been restricted") || // groq
strings.Contains(lowerMessage, "organization has been restricted") || // groq
strings.Contains(lowerMessage, "已欠费") {
return true
}